/*
Theme Name: Astra Child
Theme URI: http://wpastra.com/
Description: Astra Child Theme
Author: Brainstorm Force
Author URI: http://wpastra.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ==========================================================================
   Custom Single Post Template Styles
   ========================================================================== */

/* Container and Post Setup */
.custom-single-post {
    margin-bottom: 40px;
}

/* Force Solid White Header & Disable Overlay on Single Posts */
.single-post.ast-theme-transparent-header #masthead,
.single-post.ast-theme-transparent-header .site-header,
.single-post.ast-theme-transparent-header .main-header-bar,
.single-post .appstechy-custom-header:not(.sticky-active) {
    position: relative !important;
    background-color: #ffffff !important;
    background-image: none !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
}

/* Force custom header widget's main header bar to be solid white */
.single-post .appstechy-custom-header .appstechy-main-header {
    background-color: #ffffff !important;
}






/* Featured Image Container */
.custom-post-featured-image {
    width: 100%;
    margin: 40px 0 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.custom-post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Glassmorphic Overlapping Title Card */
.custom-post-title-card {
    position: relative;
    z-index: 10;
    width: 92%;
    margin: -60px auto 30px auto;
    background: rgba(240, 242, 245, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-sizing: border-box;
}

.custom-post-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Metadata Styling */
.custom-post-meta {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 25px;
	margin: 0 auto 20px;
	font-size: 0.9rem;
	color: #54595f;
	flex-wrap: wrap;
	max-width: 1080px;
	padding: 15px 0;
	border-top: 1px dotted #afafaf;
    border-bottom: 1px dotted #afafaf;
    font-size: 13px;
    font-family: "Roboto";
    font-weight: 300;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
	width: 13px;
	height: 13px;
	fill: #54595f;
}

/* Metadata Divider */
.custom-meta-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 0 auto 40px auto;
    max-width: 92%;
}

/* Content Area & Typography */
.custom-post-entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333333;
}

.custom-post-entry-content p {
    font-size: 18px;
    line-height: 38px;
    color: #444;
    font-family: "Roboto";
    margin-bottom: 1.75em;
}

.custom-post-entry-content p a {
    text-decoration: none !important;
    color: #3b37ad;
    transition: .3s all linear;
}
.custom-post-entry-content p a:hover {
    color: #191970;
}

.custom-post-entry-content .wp-block-heading {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #1e293b;
    margin: 0 0 20px;
}


/* Custom Blockquote */
.custom-post-entry-content blockquote {
    border-left: 4px solid #1e73be;
    padding: 15px 25px;
    margin: 35px 0;
    background-color: #f8fafc;
    font-style: italic;
    color: #444444;
    font-size: 1.15rem;
    line-height: 1.65;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.custom-post-entry-content blockquote p {
    margin: 0;
}

/* Tags Styling */
.custom-post-footer {
    max-width: 92%;
    margin: 30px auto;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.custom-post-tags {
    font-size: 0.9rem;
    color: #666666;
}

.custom-post-tags a {
    color: #1e73be;
    text-decoration: none;
    margin-left: 5px;
}

.custom-post-tags a:hover {
    text-decoration: underline;
}

/* Post Navigation (Previous / Next) */
.custom-post-navigation {
	max-width: 1100px;
	margin: 40px 0 0;
	padding: 30px 10px;
	border-bottom: 1px dotted #ccc;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 30px;
}

.nav-previous, .nav-next {
    flex: 1 1 280px;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999999;
    letter-spacing: 1.5px;
    margin-bottom: 0;
}

.nav-link a {
	font-size: 13px;
	font-weight: 400;
	color: #0176AB;
	text-decoration: none;
	line-height: 30px;
	display: inline-block;
	transition: color 0.2s ease;
}

.nav-link a:hover {
    color: #155a96;
}

.nav-arrow {
	font-size: 35px;
	line-height: 1;
	display: inline-block;
	color: #d5d8dc;
}

.custom-post-navigation .nav-btn {
	display: flex;
	align-items: center;
	gap: 12px;
    cursor: pointer;
}

/* Comments Area Layout styling */
#comments {
    max-width: 1080px;
    margin: 20px auto;
    padding: 0;
}

.comment-reply-title {
	font-size: 1.2777777777778rem;
	font-weight: 600;
	color: #1e293b;
}

.comment-notes {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 25px;
}

/* 3-Column Grid for Comment Form Inputs */
.comment-form {
    display: block;
}
.comments-area p.logged-in-as {
	font-size: 18px;
	line-height: 30px;
	color: #67768e;
}
.comments-area p.logged-in-as a {
    color: #67768e;
}
.form-submit #submit {
	font-family: "Montserrat", Sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	border-radius: 0px 0px 0px 0px;
	background: linear-gradient(144deg, #0176ab 0%, #575756 100%);
	line-height: 42px;
	padding: 0;
	border: none;
	width: 170px;
	height: 40px !important;
	color: #fff !important;
	padding: 0 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	display: inline-block;
	box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5), 7px 7px 20px 0px rgba(0,0,0,.1), 4px 4px 5px 0px rgba(0,0,0,.1) !important;
	outline: none;
	text-decoration: none;
	fill: #fff;
	text-align: center;
    transition: .3s all linear;
}
.form-submit #submit:hover {
	background: transparent;
	color: #0176ab !important;
	box-shadow: inset 0 0 8px #0176ab !important;
}


@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .comment-form-comment,
    .comment-notes,
    .comment-form-cookies-consent,
    .form-submit {
        grid-column: span 3;
    }
    
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        grid-column: span 1;
    }
}

/* Form Input Styling */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
    background-color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #1e73be;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #555555;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
}

/* Custom Submit Button */
.comment-form .form-submit input[type="submit"] {
    background-color: #1e73be;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 115, 190, 0.2);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: #155a96;
    box-shadow: 0 6px 15px rgba(30, 115, 190, 0.3);
    transform: translateY(-1px);
}

.comment-form .form-submit input[type="submit"]:active {
    transform: translateY(1px);
}
button:focus {
    background-color: transparent;
    border-color: transparent;
}
/* **single blog** */
.custom-single-post {
	max-width: 1140px;
	width: 100%;
	margin: 0 auto !important;
	padding: 0 20px;
}
/* Responsiveness adjustments */
@media (max-width: 768px) {
    .custom-post-title-card {
        padding: 25px 20px;
        margin-top: -40px;
        width: 95%;
    }
    
    .custom-post-title {
        font-size: 1.75rem;
    }
    
    .custom-post-meta {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .custom-post-entry-content {
        max-width: 100%;
        padding: 0;
    }
    
    .custom-post-navigation {
        max-width: 100%;
        flex-direction: column;
        gap: 20px;
        margin: 0 auto;
        padding: 40px 0;
    }
    
    .nav-next {
        text-align: left;
    }
    
    #comments {
        max-width: 100%;
    }
    .custom-post-entry-content p {
        font-size: 16px;
        line-height: 28px;
    }
    .custom-post-entry-content .wp-block-heading {
        font-size: 18px;
        line-height: 1.4;
        margin: 0 0 10px;
    }
    .custom-post-title {
        font-size: 20px;
        line-height: 1.4;
    }
    .custom-post-navigation .nav-btn {
        flex: inherit;
    }
    .comment-reply-title {
        margin: 0 0 5px;
    }
    .comments-area p.logged-in-as {
        font-size: 16px;
        line-height: 1.4;
        margin: 0 0 25px;
    }
    .custom-post-entry-content ul li {
        font-size: 16px;
        line-height: 28px;
    }
    .custom-post-featured-image img {
        max-height: 280px;
    }
} 