/* home custom styles extracted from home.blade.php */

.hero-carousel .carousel-item {height: 460px; border-radius: 12px; overflow: hidden}
.hero-slide {width:100%;height:100%;background-size:cover;background-position:center;position:relative}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.3) 0%,rgba(0,0,0,0.6) 100%);display:flex;align-items:center;justify-content:center;padding:28px}
.hero-content{color:#fff;text-align:right;width:100%;max-width:800px;}
.hero-tag{background:#ffc107;padding:6px 16px;border-radius:18px;display:inline-block;font-weight:700;margin-bottom:12px;font-size:14px}
.hero-title{font-size:32px;font-weight:800;margin:0 0 12px;line-height:1.4}
.hero-meta{color:rgba(255,255,255,0.9);font-size:14px}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{width:50px;height:50px;background:#183354;border-radius:50%;opacity:1;top:50%;transform:translateY(-50%)}
.hero-carousel .carousel-control-prev{right:auto;left:20px}
.hero-carousel .carousel-control-next{left:auto;right:20px}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon{width:20px;height:20px;background-size:20px 20px}
.hero-carousel .carousel-indicators{bottom:20px;margin:0}
.hero-carousel .carousel-indicators button{width:10px;height:10px;border-radius:50%;opacity:0.5;background:#fff;border:0;margin:0 4px}
.hero-carousel .carousel-indicators button.active{opacity:1;background:#ffc107}
.small-cards .card{border-radius:12px;box-shadow:0 6px 20px rgba(0,0,0,0.06);overflow:hidden;border:0;display:flex;align-items:center;gap:12px;padding:10px;flex-direction:row-reverse}
.small-cards .card img{width:140px;height:90px;object-fit:cover;border-radius:8px;margin-right:12px;flex:0 0 140px}
.small-cards .card-body{padding:8px 6px;flex:1;text-align:right}
.small-cards .card-title{font-size:14px;font-weight:700;margin:0; line-height: 24px;}
.small-cards .card-text{font-size:12px;color:#6c757d;margin-top:6px}
@media (max-width: 575px){
  .small-cards .card{flex-direction:column;padding:0}
  .small-cards .card img{width:100%;height:110px;margin-left:0;border-radius:6px}
  .small-cards .card-body{padding:10px}
}
@media (max-width: 767px){
  .hero-carousel .carousel-item{height:300px}
  .small-cards .card img{height:100px}
  .hero-title{font-size:20px;line-height:1.3}
  .hero-tag{font-size:12px;padding:4px 12px}
  .hero-meta{font-size:12px}
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next{width:40px;height:40px}
  .hero-carousel .carousel-control-prev{left:10px}
  .hero-carousel .carousel-control-next{right:10px}
  .hero-carousel .carousel-control-prev-icon,
  .hero-carousel .carousel-control-next-icon{width:16px;height:16px;background-size:16px 16px}
  .hero-carousel .carousel-indicators button{width:8px;height:8px;margin:0 3px}
}

.ask-section{background:#eef3f6;padding:48px;border-radius:12px;margin-top:30px;position:relative;overflow:hidden}
.ask-title{text-align:center;font-weight:800;color:#183354;margin-bottom:18px;font-size:20px}
.ask-decor{position:absolute;pointer-events:none;opacity:0.95}
.ask-decor.left{left:0px;top:0px;width:180px}
.ask-decor.top-right{right:0px;top:0px;width:180px}
.ask-decor.bottom-left{left:0px;bottom:0px;width:180px}
.ask-decor.right{right:0px;bottom:0px;width:220px}
.ask-buttons{display:flex;gap:10px;justify-content:center;margin-bottom:18px;flex-wrap:wrap}
.ask-buttons .btn{border-radius:10px;background:none;border:1px solid #183354;color:#183354;padding:6px 14px;font-weight:600;box-shadow:none}
.ask-form{max-width:880px;margin:0 auto}
.ask-form .controls-wrap{width:78%;margin:0 auto}
.ask-form .form-control{border-radius:8px;border:1px solid #dbe6ea;background:#fff;height:44px;padding:8px 12px}
.ask-form .form-row{display:flex;gap:14px;margin-bottom:14px;justify-content:center}
.ask-form .form-row .form-control{flex:1;min-width:0;text-align:right}
.ask-form textarea.form-control{height:120px; width:100%; resize:vertical;padding:12px}
.controls-wrap .submit-wrap{display:flex;justify-content:flex-end;margin-top:18px}
.controls-wrap .submit-wrap .ask-submit{padding:16px 60px}
.ask-submit{background:#183354;color:#fff;border:none;padding:10px 28px;border-radius:8px}

.ask-section .btn-primary{background:#183354;border-color:#183354;color:#fff}

.ask-section .auto-hide-alert{ max-width:720px; margin: 0 auto 16px; }
.auto-hide-alert{ transition: opacity .35s ease, transform .35s ease; }
.auto-hide-alert.hide{ opacity: 0; transform: translateY(-6px); pointer-events: none; }

@media (max-width: 767px) {
  .ask-section {
    padding: 24px 16px;
  }
  
  .ask-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .ask-decor {
    display: none;
  }
  
  .ask-buttons {
    gap: 8px;
  }
  
  .ask-buttons .btn {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .ask-form .controls-wrap {
    width: 100%;
  }
  
  .ask-form .form-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .controls-wrap .submit-wrap .ask-submit {
    padding: 12px 40px;
    width: 100%;
  }
  
  .qa-card-custom {
    padding: 14px 12px !important;
    margin-bottom: 18px !important;
  }
  
  .qa-card-custom .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  
  .qa-card-custom .qa-status {
    font-size: 13px;
  }
  
  .qa-card-custom > div:first-child > div:first-child {
    font-size: 15px;
  }
  
  .qa-card-custom > div:nth-child(2) {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  
  .qa-card-custom .qa-meta {
    font-size: 12px !important;
  }
  
  .qa-card-custom > div:last-child {
    padding: 14px 12px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
  
  .qa-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ask-form .form-row {
    flex-direction: column;
  }
  
  .ask-decor.left {
    display: none;
  }
  
  .ask-decor.right {
    display: none;
  }
}

@media (max-width: 576px) {
  .qa-card-custom {
    padding: 12px 10px !important;
    margin-bottom: 16px !important;
    border-radius: 12px !important;
  }
  
  .qa-card-custom .d-flex {
    gap: 6px;
  }
  
  .qa-card-custom > div:first-child > div:first-child {
    font-size: 14px;
  }
  
  .qa-card-custom .qa-status {
    font-size: 12px;
  }
  
  .qa-card-custom > div:nth-child(2) {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  
  .qa-card-custom .qa-meta {
    font-size: 11px !important;
  }
  
  .qa-card-custom > div:last-child {
    padding: 12px 10px !important;
    font-size: 13px !important;
  }
}

.ask-section .btn-primary:hover,.ask-section .btn-primary:focus{background:#0b3150;border-color:#0b3150;color:#fff}
.ask-form .form-control::placeholder{color:#95a3ab;opacity:1}
.ask-form textarea.form-control::placeholder{color:#95a3ab}
.qa-filters{display:flex;gap:12px;align-items:center;margin:28px 0;justify-content:flex-end}
.qa-filters .form-control{max-width:320px}
.qa-card{background:#fff;border-radius:8px;padding:18px;margin-bottom:18px;box-shadow:0 6px 16px rgba(0,0,0,0.04);border:1px solid #eef3f6}
.qa-meta{color:#6c757d;font-size:13px;margin-top:8px}
.qa-answer{background:#f7fafb;padding:12px;border-radius:6px;margin-top:12px;border-left:4px solid #e9eef2}
.qa-status{color:#28a745;font-weight:700;margin-left:10px}
@media (max-width:767px){
  .qa-filters{flex-direction:column;align-items:stretch}
  .ask-form .form-row{flex-direction:column}
  .ask-decor.left{display:none}
  .ask-decor.right{display:none}
}
