/* BLOGS START */
/* ================= HERO ================= */
.blog-hero{
    height:300px;
    padding:20px;
    text-align:center;
}

.blog-hero h1{
    font-size:42px;
    font-weight:700;
}

.blog-hero p{
    font-size:18px;
    max-width:600px;
    margin:auto;
}

/* ================= FEATURED ================= */
.blog-featured{
    padding:25px;
}

.blog-featured-img{
    height:350px;
    width:100%;
    object-fit:cover;
    border-radius:20px;
}

/* ================= BLOG CONTROLS ================= */
.blog-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    padding:20px;
    background:#f9fbfd;
    border-radius:20px;
}

/* Categories */
.blog-categories{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.blog-categories button{
    border:none;
    background:#fff;
    padding:10px 20px;
    border-radius:30px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
    font-weight:500;
}

.blog-categories button:hover,
.blog-categories button.active{
    background:#20a4e4;
    color:#fff;
}

/* ================= SEARCH ================= */
.blog-search{
    flex:1 1 320px;
}

.blog-search form{
    display:flex;
    width:100%;
}

.blog-search input{
    flex:1;
    padding:12px 15px;
    border:1px solid #ddd;
    border-radius:30px 0 0 30px;
    font-size:15px;
    background:#fff;
    box-shadow:inset 0 2px 5px rgba(0,0,0,0.05);
    transition:0.3s;
}

.blog-search input:focus{
    border-color:#20a4e4;
    box-shadow:0 0 8px rgba(32,164,228,0.3);
    outline:none;
}

.blog-search button{
    padding:12px 20px;
    background:#20a4e4;
    color:#fff;
    border:none;
    border-radius:0 30px 30px 0;
    font-weight:bold;
    box-shadow:0 5px 15px rgba(32,164,228,0.3);
    transition:0.3s;
}

.blog-search button:hover{
    background:#178bc4;
}

/* ================= BLOG CARDS ================= */
.blog-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    transition:0.4s;
    height:100%;
    display:flex;
    flex-direction:column;
}

.blog-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.blog-img{
    height:220px;
    overflow:hidden;
}

.blog-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.6s;
}

.blog-card:hover .blog-img img{
    transform:scale(1.1);
}

.blog-body{
    padding:20px;
    flex:1;
}

.blog-badge{
    background:#20a4e4;
    color:#fff;
    padding:6px 15px;
    border-radius:30px;
    font-size:13px;
    display:inline-block;
    margin-bottom:15px;
}

.read-more{
    text-decoration:none;
    font-weight:600;
    color:#20a4e4;
}

.read-more:hover{
    color:#ffd700;
}

/* ================= PAGINATION ================= */
.blog-pagination a{
    display:inline-block;
    padding:10px 18px;
    margin:5px;
    border-radius:50px;
    background:#fff;
    color:#20a4e4;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    text-decoration:none;
    transition:0.3s;
}

.blog-pagination a.active,
.blog-pagination a:hover{
    background:#20a4e4;
    color:#fff;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media(max-width:992px){

    .blog-hero h1{
        font-size:32px;
    }

    .blog-hero p{
        font-size:16px;
    }

    .blog-featured-img{
        height:250px;
        margin-bottom:20px;
    }

    .blog-controls{
        /*flex-direction:column;*/
        /*align-items:stretch;*/
    }

    .blog-search form{
        flex-direction:column;
        gap:12px;
    }

    .blog-search input{
        border-radius:30px;
    }

    .blog-search button{
        width:100%;
        border-radius:10px;
    }
}

/* Mobile */
@media(max-width:767px){

    .blog-controls{
        /*margin-bottom:40px;*/
    }

    .container.pb-5{
        padding-top:20px;
    }

    .blog-hero{
        height:auto;
        padding:70px 20px;
    }

    .blog-hero h1{
        font-size:24px;
    }

    .blog-hero p{
        font-size:14px;
    }

    .blog-img{
        height:200px;
    }

    .blog-categories{
        justify-content:center;
    }

    .blog-categories button{
        flex:1 1 100%;
        text-align:center;
    }
}
/* BLOGS END */


/* BLOG SHEET START */
/* ======= HERO ======= */
.blog-details-hero {
    height: 300px;
}

/* ======= ARTICLE ======= */
.blog-details-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}
.blog-details-card blockquote {
    border-left: 5px solid #20a4e4;
    padding-left: 15px;
    font-style: italic;
    color: #555;
}

/* ======= AUTHOR SECTION ======= */
.author-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.author-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Profile Image */
.author-image img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #20a4e4; /* Primary Color Border */
    padding: 4px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(32,164,228,0.3);
    transition: transform 0.4s ease;
}

.author-box:hover .author-image img {
    transform: scale(1.05);
}

/* Author Content */
.author-label {
    display: inline-block;
    background: rgba(32,164,228,0.1);
    color: #20a4e4;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 15px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.author-content h5 {
    font-weight: 700;
    color: #0d3b66;
    margin-bottom: 8px;
}

.author-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-image img {
        width: 95px;
        height: 95px;
    }
}

/* ======= COMMENTS ======= */
.comment-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.comment-header {
    display: flex;
    gap: 15px;
    align-items: center;
}
.comment-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #20a4e4;
}
.comment-body {
    margin-top: 15px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
.comment-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ======= REPLY BUTTONS ======= */
.reply-btn, .view-reply-btn {
    border: none;
    background: #20a4e4;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.reply-btn:hover, .view-reply-btn:hover {
    background: #178bc4;
    transform: translateY(-2px);
}

/* ======= REPLIES ======= */
.reply-container {
    margin-top: 20px;
    padding-left: 35px;
    border-left: 3px solid #20a4e4;
}
.reply-card {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.reply-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.reply-actions {
    margin-top: 5px;
    display: flex;
    gap: 8px;
}
.comment-card {
    background: #f0f8ff; /* Comment */
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.reply-container > .reply-card {
    background: #e6f7ff; /* Reply */
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.nested-reply > .reply-card {
    background: #d0ebff; /* Nested Reply */
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.comment-header h6,
.reply-card h6,
.reply-of-reply-card h6 {
    font-weight: 700;  /* Bold */
    color: #0d3b66;    /* Dark primary color */
}

/* ======= SIDEBAR ======= */
.sidebar-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}
.recent-title {
    color: #20a4e4;
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 25px;
    animation: slideIn 2s infinite alternate;
}
@keyframes slideIn {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(10px); }
}

/* ======= RECENT BLOG CARD ======= */
.recent-blog-card {
    position: relative;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}
.recent-blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.recent-blog-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    transition: background 0.4s ease;
}
.recent-blog-card:hover .overlay {
    background: transparent;
    transform: scale(1.05);
}
.recent-blog-card:hover img {
    transform: scale(1.05);
}
.recent-blog-card .overlay-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
}
.recent-blog-card .overlay-content h5 {
    font-size: 16px;
    font-weight: 700;
}
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 18px;
    background: #20a4e4;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
}
.post-date {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 12px;
    color: #ffd700;
}
@media (max-width:767px){
    .recentBlogAdjustment{
        margin-top:50px;
    }
}

/* ======= COMMENT FORM ======= */
.comment-form-card {
    background: #fff;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.quote-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.quote-form .form-group {
    flex: 1 1 calc(50% - 10px);
}
.quote-form .form-group.full-width {
    flex: 1 1 100%;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #333;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: #20a4e4;
    box-shadow: 0 0 8px rgba(32, 164, 228, 0.3);
    outline: none;
}
.quote-btn {
    width: 100%;
    padding: 14px;
    background: #20a4e4;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(32,164,228,0.3);
    transition: all 0.3s ease;
}
.quote-btn:hover {
    background: #178bc4;
    box-shadow: 0 8px 20px rgba(32,164,228,0.4);
    transform: translateY(-2px);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .quote-form .form-group {
        flex: 1 1 100%;
    }
    .reply-container {
        padding-left: 15px;
    }
}

/* ===== MAIN IMAGE ===== */
.main-blog-image{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    cursor:pointer;
}

.main-blog-image img{
    width:100%;
    height:450px;
    object-fit:cover;
    transition:0.4s ease;
}

.main-blog-image:hover img{
    transform:scale(1.05);
}

.image-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:0.4s ease;
}

.image-overlay i{
    color:#fff;
    font-size:30px;
    background:#20a4e4;
    padding:15px;
    border-radius:50%;
}

.main-blog-image:hover .image-overlay{
    opacity:1;
}

/* ===== GRID IMAGES ===== */
.blog-image-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.grid-image{
    position:relative;
    border-radius:15px;
    overflow:hidden;
    cursor:pointer;
}

.grid-image img{
    width:100%;
    height:150px;
    object-fit:cover;
    transition:0.4s ease;
}

.grid-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.4s ease;
}

.grid-overlay i{
    color:#fff;
    font-size:22px;
    background:#20a4e4;
    padding:10px;
    border-radius:50%;
}

.grid-image:hover img{
    transform:scale(1.1);
}

.grid-image:hover .grid-overlay{
    background:rgba(0,0,0,0.3);
}

/* ===== MODAL ===== */
.image-modal{
    display:none;
    position:fixed;
    z-index:9999;
    inset:0;
    background:rgba(0,0,0,0.9);
    align-items:center;
    justify-content:center;
}

.image-modal img{
    max-width:90%;
    max-height:85vh;
    border-radius:20px;
}

.close-modal{
    position:absolute;
    top:30px;
    right:40px;
    font-size:40px;
    color:#fff;
    cursor:pointer;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){

    .main-blog-image img{
        height:300px;
    }

    .blog-image-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){

    .blog-image-grid{
        grid-template-columns:1fr;
    }
}

.social-share {
    background: #f0f8ff;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-size: 16px;
    font-weight: 600;
    color: #0d3b66;
}

.social-share .share-label {
    margin-right: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.social-icon i {
    font-size: 18px;
}

/* Brand Colors */
.social-icon.whatsapp { background: #25D366; }
.social-icon.facebook { background: #3b5998; }
.social-icon.linkedin { background: #0077b5; }
.social-icon.twitter { background: #1da1f2; }

/* Hover Effects */
.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
/* BLOG SHEET END */

/* Searching Sweet Alert Icon */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.shake {
  display: inline-block;
  animation: shake 0.5s infinite;
}

/*Blog Search Bar Form*/
.blogSearchForm{
    width:100%;
}
@media (min-width:768px){
    .blogSearchForm{
        width:600px !important;
    }
}