/*
Theme Name: Astra child theme
Author: sangpi
Description: This is for custom endpoint api for sending email
Version: 1.0
Template: astra

This is the child theme for Astra theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

@import url("../astra/style.css");
/* ============================================
   Custom Css Styles
   ============================================ */


img[title] {
    pointer-events: none !important;
}

/*
#ast-mobile-header{
	display:none !important;
}
*/

/* Tip & techniques */

#acs-post-div{
	background:#d6e6f3;
	padding:10px;
}


.acs-post-link:not(:last-child){
	border-bottom: 1.2px solid black;
}

.acs-post-link > a:first-of-type{
	cursor:pointer;
	color: #2b6da3 !important;
}

.acs-post-link > a:not(:first-of-type) {
	color: #000;
}

/* about */
  #about
{
	background: rgba(39, 136, 181);
	gap:0.5rem;
	color:#FFF;
	padding:30px;
	display: grid;
	grid-template-columns: 1fr auto;
}
.acs-title{
	text-transform: uppercase;
	font-size: 1.3rem;
	font-weight:500;
}

#about p {
	margin-top: 1rem;
	font-size: 1rem;
	line-height: 1.4;
	text-align: justify;
	padding-right: 1.1rem;
}

#about > div:last-child{
	background: rgba(177, 214, 233);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	border-radius: 15px;
}
.about-img{
	width: 220px;
}
.about-img > img{
	width: 100%;
	object-fit: cover;
}        
        
/** CSI Software **/
#Software{
	background: rgba(7, 16, 33);
	color:#FFF;
	padding:30px;
}

#csi-soft{
	margin-top: 20px;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.3rem;
}
#csi-soft > a{
	width: 100%;
	position: relative;
	overflow: hidden;
}
#csi-soft > a > img{
	width: 100%;           
	transition: all 0.35s ease;
}

/* The overlay that appears on hover */
#csi-soft > a::before {
	content: "";
	position: absolute;
	top: 5%;           
	left: 5%;          
	right: 5%;
	bottom: 5%;
	background: rgba(255, 255, 255, 0.85);   
	border: 2px solid white;                
	opacity: 0;
	transform: scale(0.9);                   
	transition: all 0.4s ease;
	pointer-events: none;  
	z-index: 1;
	backdrop-filter: blur(10px);
}

/* Show the white inset rectangle on hover */
#csi-soft > a:hover::before {
	opacity: 0.4;
	transform: scale(1);           
}


/** Start of Release **/
#release
{        
	color: rgba(68, 117, 148);  
	padding: 30px;       
}

#grid-release
{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap:1.2rem;
	margin: 20px 0;
}
#grid-release > a
{
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	border: 1px solid #707070;
	cursor: pointer;
	border-radius: 36px;
	padding:20px;
	color: #707070;
	font-size: 1.3rem;  
	transition: all 0.3s ease;
}   

#grid-release > a:hover
{
	border: 1px solid rgba(0, 0, 0, 0);
	box-shadow: 
		inset 0 3px 6px rgba(0,0,0,0.25),   /* top inner shadow */
		inset 0 -3px 6px rgba(0,0,0,0.20),  /* bottom inner shadow */
		inset 3px 0 6px rgba(0,0,0,0.15),   /* left */
		inset -3px 0 6px rgba(0,0,0,0.15);  /* right */
}

/** Start of Form **/
   				
.acs-flex-one
{
	display: grid;
	grid-template-columns: 1fr 1fr ;
	column-gap:0.5rem;
}
.form-container
{
	padding: 30px;
	/* background-color: rgba(255, 255, 255, 0.4);       */
	background: white;
	border:2px solid #0B7EB7;
	box-shadow: 
		0 8px 25px rgba(0, 0, 0, 0.08),
		0 3px 8px rgba(0, 0, 0, 0.05);        
}       

.form-container > .acs-title{
	margin-bottom: 0.7rem;         
}

.acs-title2
{    
	text-transform: uppercase;
	font-weight: 500;
	position: relative;
	margin-bottom: 0.7rem;
}

.acs-title2::before
{
	content: "";
	position: absolute;
	left: 0;right: 0; top: -7px;
	border: none;
	height: 1.5px;
	background: linear-gradient(to right, 
		transparent, 
		#0986b0 0%, 
		#0986b0 30%, 
		#65b311 70%); 
}
.acs-title2::after
{
	content: "";
	position: absolute;
	left: 0;right: 0; bottom: -6px;
	border: none;
	height: 1.5px;
	background: linear-gradient(to right, 
		transparent, 
		#0986b0 0%, 
		#0986b0 30%, 
		#65b311 70%); 
}
.form-group 
{
	margin-bottom: 0.7rem;            
}
label 
{
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #444;
	text-transform: uppercase;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea 
{
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	transition: border 0.3s, box-shadow 0.3s;
}
textarea 
{
	min-height: 150px;
	resize: vertical;
}

.required 
{
	color: #e74c3c;
}
        
.btn-submit 
{
	background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
	color: #FFF;
	outline: none;
	border: none;
	padding: 14px 25px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	width: 100%;
	max-width: 300px;
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btn-submit:hover 
{
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	color:#FFF !important;
}
        
.btn-submit:active
{
	transform: translateY(0);
	background-color: inherit !important;
  color: inherit !important;
}
.btn-text{
	color:#FFF;
}

#email
{
	max-width: 400px;
}
.acs-label
{
	text-transform: uppercase;
	color:#000;
	margin-bottom: 1rem;
}

#section-soft > h4
{
	color: #000;
}
        
.acs-flex
{
	margin-top: 1.5rem;;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(530px,1fr));
	gap:0.5rem;
}

.acs-flex > div
{
	display: flex;
}
#product-width
{
	flex-basis: 210px; 
	margin-right: 1rem;
}
#support-width
{
	flex-basis: 330px;
}
#order-width
{
	flex-basis: 160px; 
	margin-right: 1rem;
}
#license-width
{
	flex-basis: 170px; 
	margin-right: 1rem;
}
#quantity-width
{
	flex-basis: 120px;
}

.error 
{
	display: block;
	color: #d32f2f;
	font-size: 0.85rem;
	margin-top: 6px;
	min-height: 1.2em; /* prevents layout jump */
}

.spinner 
{
	display: none;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin 
{
	to { transform: rotate(360deg); }
}

.btn-submit.loading .spinner
{
	display: block;
}

.btn-submit.loading .btn-text 
{
	display: none;
}

#form-message
{
	margin-top: 5px;
	padding: 15px;
	border-radius: 8px;
	font-weight: 500;
}

.btn-submit:disabled 
{
	cursor: not-allowed;
}       

        
/** Start of Footer **/
#footer-section{
	padding: 30px;
}
#con-title{
	color:white;
	text-transform: uppercase;
	font-size: 1.3rem;
	font-weight:500;
	margin-bottom: 1rem;
}
.address{
	display: grid;
	color:#FFF;
	grid-template-columns: repeat(3, 1fr);
	font-size: 1.1rem;
	line-height: 1.75;
}

.acs-flex-center{
	display: flex;
	align-items: center;
	gap:0.5rem;
}

#quantity
{
	line-height: 1rem !important;
}

#country
{
    max-width: 200px;
	  padding: 14px 15px;
}

/** Tip & Techniques **/
#acs-single-row-container 
{
	width: 100%;
	margin:2rem 0;
}

.row-header
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom:1rem;
	padding: 0 10px;
}

.ace-row-title
{
	font-size: 1.5rem;
	color: #2c3e50;
	text-transform: uppercase;
	font-weight:500;
}

.view-all-link {
	color: #3498db;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease !important;
}

.view-all-link:hover {
	color: #2980b9;
	transform: translateX(5px);
}

/* Single Row Cards Container */
#single-row-cards {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 25px;
}

/* Card Styles */
.acs-news-card 
{
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease !important;
	display: flex;
	flex-direction: column;
	height: 420px;
}

.acs-news-card:hover
{
	transform: translateY(-8px) !important;
	box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.acs-card-image 
{
	position: relative;
	height: 180px;
	overflow: hidden;
}

.acs-card-image img 
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease !important;
}

.acs-news-card:hover .acs-card-image img 
{
	transform: scale(1.08);
}

.news-category 
{
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	color: white;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.breaking 
{
	background-color: #e74c3c;
}

.tech
{
	background-color: #3498db;
}

.sports 
{
	background-color: #2ecc71;
}

.business
{
	background-color: #f39c12;
}

.card-content 
{
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.news-meta
{
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: #7f8c8d;
	margin-bottom: 12px;
}

.news-meta i 
{
	margin-right: 5px;
}

.news-title 
{
	font-size: 1.2rem;
	color: #2c3e50;
	margin-bottom: 15px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-excerpt 
{
	color: #5d6d7e;
	font-size: 0.9rem;
	margin-bottom: 15px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	text-align:justify;
	overflow: hidden;
}

.read-more
{
	color: #3498db;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	display: inline-block;
	align-items: center;
	gap: 6px;
	transition: all 0.3s ease !important;
	margin-top: auto;
	cursor:pointer;
}

.read-more:hover
{
	color: #2980b9;
}

.read-more:hover i 
{
	transform: translateX(3px);
}

  /* Basic styles for the bottom sheet */
        .acs-acs-bottom-sheet-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: flex-end;
            z-index: 1000;
        }

        .acs-bottom-sheet {
            background: #FFF;
            width: 100%;
            max-width: 700px;
            border-radius: 20px 20px 0 0;
            padding: 20px;
            transform: translateY(100%) ;
            transition: transform 0.3s ease-out !important;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            max-height: 80vh;
            overflow-y: auto;
        }

.acs-bottom-sheet .sheet-content p{
	text-align:justify;
	color:#000;
	margin-top:1.5rem;
}
        .acs-bottom-sheet.show {
            transform: translateY(0);
        }

        .acs-acs-bottom-sheet-overlay.show {
            display: flex;
        }

        .acs-close-btn {
            /* float: right; */
            font-size: 24px;
            cursor: pointer;
            border: none;
            background: none;
            padding: 5px 10px;
        }     
        .acs-close-btn:hover {
            background: #f0f0f0;
            border-radius: 50%;
        }

        #bot-title
        {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #bot-title:first-child{
            font-size: 1.3rem;
            color:#000;
						font-weight:500;
        }



/** media query **/
@media(max-width : 900px){
    .acs-flex{
        grid-template-columns: auto;
        gap:0.2rem;
    }
	 #grid-release img{
       width:100px;
    }
}


@media(max-width : 800px){
    #grid-release{
        grid-template-columns: repeat(1, 1fr);
    }
	  #grid-release img{
       width:80px;
    }
    #about{       
        grid-template-columns: 1fr;
    }
    .about-img{
        width: 250px;
    }
    #csi-soft{
        grid-template-columns: repeat(2,1fr);
    }
	#single-row-cards{
		grid-template-columns: repeat(2,1fr);
	}
}

@media(max-width: 640px){
		#single-row-cards{
		grid-template-columns: repeat(1,1fr);
	}
	#country{
		  padding: 12px 15px;
	}
	 #csi-soft{
        grid-template-columns: repeat(1,1fr);
    }
    .address{
        grid-template-columns: repeat(1,1fr);
    }
	  .acs-flex-one{
      grid-template-columns: auto;  
    }
    .acs-flex > div{
        flex-direction: column;
    }
    .acs-flex .form-group{
        margin-bottom: 0rem;
    }
    #product-width{
        flex-basis: auto; 
        margin-right: 0rem;
    }
    #support-width{
        flex-basis: auto;
    }
    #order-width{
        flex-basis: auto; 
        margin-right: 0rem;
    }
    #license-width{
        flex-basis: auto; 
        margin-right: 0rem;
    }
    #quantity-width{
        flex-basis: auto;
    }
}


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

/* Custom post header section */
.custom-post-header {
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* Featured image styling */
.custom-post-thumbnail {
    margin-bottom: 20px;
}

.custom-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Custom title area */
.custom-post-title-area {
    padding: 30px;
    text-align: center;
}

.custom-post-title {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    color: #1e1e1e;
    line-height: 1.2;
}

/* Custom post meta styling */
.custom-post-meta {
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    margin-top: 20px;
}

.custom-post-meta span {
    margin-right: 20px;
}

.custom-post-meta a {
    color: #2277aa;
    text-decoration: none;
}

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

/* Custom post content area */
.custom-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.custom-post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.custom-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Tags styling */
.custom-post-tags {
    margin: 30px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Post navigation styling */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-post-title {
        font-size: 1.8rem;
    }
    
    .custom-post-title-area {
        padding: 20px;
    }
    
    .custom-post-meta span {
        display: block;
        margin-bottom: 10px;
    }
    
    .custom-post-content {
        font-size: 1rem;
    }
}