/**
 * Dream Careers - Responsive Fixes
 * Ensures all pages are fully responsive across all devices
 */

/* ============================================
   MOBILE FIRST - Base Styles (320px+)
============================================ */

/* Typography responsive scaling */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }
}

/* Container padding for mobile */
@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .section {
    padding: 40px 0 !important;
  }
}

/* ============================================
   HEADER & NAVIGATION
============================================ */

/* Topbar responsive */
@media (max-width: 767px) {
  .topbar {
    padding: 8px 0;
  }
  
  .topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .topbar .contact-info {
    font-size: 10px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  
  .topbar .contact-info i.bi-envelope {
    display: none;
  }
  
  .topbar .contact-info i.bi-phone {
    display: flex !important;
    font-size: 10px;
  }
  
  .topbar .contact-info .phone-numbers {
    font-size: 10px !important;
    white-space: nowrap;
  }
  
  .topbar .contact-info .phone-numbers a {
    font-size: 10px !important;
  }
  
  .topbar .social-links {
    display: flex !important;
    gap: 8px;
  }
  
  .topbar .social-links a {
    font-size: 14px;
    padding: 4px;
  }
}

@media (max-width: 575px) {
  .topbar .contact-info {
    font-size: 9px;
  }
  
  .topbar .contact-info i.bi-phone {
    font-size: 9px;
  }
  
  .topbar .contact-info .phone-numbers {
    font-size: 9px !important;
  }
  
  .topbar .contact-info .phone-numbers a {
    font-size: 9px !important;
  }
}

/* Logo responsive */
@media (max-width: 767px) {
  .logo h1 {
    font-size: 18px !important;
  }
  
  .logo img {
    max-height: 45px;
  }
}

/* Mobile menu improvements */
@media (max-width: 1199px) {
  .navmenu {
    padding: 0;
  }
  
  .navmenu ul {
    padding: 10px;
  }
  
  .navmenu a {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .navmenu .dropdown ul {
    position: static;
    box-shadow: none;
  }
}

/* ============================================
   HERO SECTION
============================================ */

@media (max-width: 767px) {
  .hero {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  
  .hero h1 {
    font-size: 28px !important;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 14px !important;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px !important;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px !important;
  }
  
  .hero-stats .stat-item {
    text-align: center;
    width: 100%;
  }
  
  .emergency-contact {
    justify-content: center;
    text-align: center;
  }
}

/* ============================================
   PAGE HERO (Inner Pages)
============================================ */

@media (max-width: 767px) {
  .dc-page-hero {
    padding-top: 120px !important;
    padding-bottom: 50px !important;
  }
  
  .dc-page-hero h1 {
    font-size: 26px !important;
  }
  
  .dc-page-hero p {
    font-size: 14px !important;
  }
}

/* ============================================
   FORMS - Free & Paid Counseling
============================================ */

@media (max-width: 767px) {
  .dc-form-card {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }
  
  .dc-form-card .form-control,
  .dc-form-card .form-select,
  .dc-form-card textarea {
    font-size: 14px !important;
    padding: 10px 14px !important;
  }
  
  .dc-form-card label {
    font-size: 12px !important;
  }
  
  .dc-submit-btn {
    padding: 12px !important;
    font-size: 14px !important;
  }
  
  .section-divider {
    font-size: 10px !important;
  }
}

/* Info cards responsive */
@media (max-width: 767px) {
  .dc-info-card {
    padding: 24px 20px !important;
    margin-top: 24px;
  }
  
  .dc-info-item {
    flex-direction: column;
    text-align: center;
    align-items: center !important;
  }
  
  .dc-why-item {
    font-size: 13px !important;
  }
}

/* Contact info cards */
@media (max-width: 767px) {
  .dc-contact-info-card {
    padding: 20px !important;
  }
  
  .dc-contact-info-card .ci-icon {
    width: 44px !important;
    height: 44px !important;
  }
  
  .dc-contact-info-card h5 {
    font-size: 14px !important;
  }
  
  .dc-contact-info-card p {
    font-size: 12px !important;
  }
}

/* ============================================
   POPUP
============================================ */

@media (max-width: 767px) {
  #bookSessionPopup {
    padding: 15px;
  }
  
  .bsp-card {
    max-width: 100%;
    border-radius: 16px !important;
  }
  
  .bsp-header {
    padding: 24px 20px 20px !important;
  }
  
  .bsp-header h3 {
    font-size: 18px !important;
  }
  
  .bsp-header p {
    font-size: 13px !important;
  }
  
  .bsp-body {
    padding: 20px !important;
  }
  
  .bsp-body .form-control {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
  
  .bsp-submit {
    padding: 12px !important;
    font-size: 14px !important;
  }
  
  .bsp-footer {
    font-size: 11px !important;
  }
}

/* ============================================
   HOME PAGE - Paid Counseling Section
============================================ */

@media (max-width: 991px) {
  .dc-paid-counseling-section .row {
    flex-direction: column-reverse;
  }
  
  .dc-paid-counseling-section .col-lg-6 {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .dc-paid-counseling-section {
    padding: 32px 0 !important;
  }
  
  .dc-paid-counseling-section .dc-section-heading {
    font-size: 22px !important;
  }
  
  .dc-paid-counseling-section .row.g-3 .col-sm-6 {
    width: 100%;
  }
  
  .dc-paid-counseling-section form {
    padding: 28px 20px !important;
  }
  
  .dc-paid-counseling-section .btn {
    font-size: 13px !important;
    padding: 10px 16px !important;
  }
}

/* ============================================
   SERVICES PAGE
============================================ */

@media (max-width: 767px) {
  .dc-counseling-card {
    padding: 24px 20px !important;
  }
  
  .dc-check-row {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }
  
  .dc-stats-dark {
    padding: 24px 20px !important;
    margin-top: 24px;
  }
  
  .dc-stats-dark .s-num {
    font-size: 24px !important;
  }
  
  .dc-svc-card {
    margin-bottom: 20px;
  }
  
  .dc-svc-img {
    height: 180px !important;
  }
  
  .dc-svc-body {
    padding: 20px !important;
  }
  
  .dc-svc-body h3 {
    font-size: 16px !important;
  }
  
  .dc-process-step {
    padding: 18px !important;
    flex-direction: column;
    text-align: center;
  }
  
  .dc-process-num {
    margin: 0 auto 12px;
  }
}

/* ============================================
   ABOUT PAGE
============================================ */

@media (max-width: 767px) {
  .dc-about-img-wrap .main-img {
    height: 280px !important;
  }
  
  .dc-about-badge {
    position: static !important;
    margin-top: 16px;
    justify-content: center;
  }
  
  .dc-stat-pill {
    padding: 16px 20px !important;
  }
  
  .dc-stat-pill .num {
    font-size: 24px !important;
  }
  
  .dc-value-card {
    padding: 24px 20px !important;
  }
  
  .dc-value-icon {
    width: 52px !important;
    height: 52px !important;
  }
  
  .dc-value-card h4 {
    font-size: 16px !important;
  }
  
  .dc-mission-banner {
    padding: 32px 24px !important;
  }
  
  .dc-mission-banner h3 {
    font-size: 20px !important;
  }
  
  .dc-mission-item {
    flex-direction: column;
    text-align: center;
    align-items: center !important;
  }
}

/* ============================================
   TESTIMONIALS PAGE
============================================ */

@media (max-width: 767px) {
  .dc-rating-bar {
    padding: 24px 20px !important;
    flex-direction: column;
    text-align: center;
  }
  
  .dc-rating-big .num {
    font-size: 48px !important;
  }
  
  .dc-rating-divider {
    display: none !important;
  }
  
  .dc-rating-stats {
    flex-direction: column;
    gap: 16px !important;
    width: 100%;
  }
  
  .dc-rating-stat {
    text-align: center;
  }
  
  .dc-testi-card {
    padding: 20px !important;
  }
  
  .dc-testi-card .quote-mark {
    font-size: 36px !important;
    top: 15px;
    right: 15px;
  }
}

/* ============================================
   CONTACT PAGE
============================================ */

@media (max-width: 767px) {
  .dc-map-wrap {
    height: 280px !important;
    border-radius: 12px !important;
  }
  
  .dc-social-link {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
}

/* ============================================
   CTA STRIPS
============================================ */

@media (max-width: 767px) {
  .dc-cta-strip {
    padding: 28px 24px !important;
    flex-direction: column;
    text-align: center;
  }
  
  .dc-cta-strip h3 {
    font-size: 18px !important;
  }
  
  .dc-cta-strip p {
    font-size: 13px !important;
  }
  
  .dc-cta-strip a {
    width: 100%;
    text-align: center;
    padding: 12px 24px !important;
  }
}

/* Call to action section */
@media (max-width: 767px) {
  .call-to-action {
    padding: 40px 0 !important;
  }
  
  .call-to-action h1 {
    font-size: 24px !important;
  }
  
  .call-to-action .cta-wrapper {
    flex-direction: column;
    gap: 12px !important;
  }
  
  .call-to-action .cta-wrapper a {
    width: 100%;
    text-align: center;
  }
  
  .contact-block {
    margin-top: 24px !important;
  }
  
  .emergency-call {
    font-size: 14px !important;
  }
}

/* ============================================
   FOOTER
============================================ */

@media (max-width: 767px) {
  .footer {
    padding: 40px 0 20px !important;
  }
  
  .footer-main {
    padding-bottom: 32px;
  }
  
  .brand-section {
    margin-bottom: 32px;
  }
  
  .brand-section .logo {
    margin-bottom: 16px;
  }
  
  .brand-description {
    font-size: 14px !important;
  }
  
  .contact-info {
    margin-top: 24px !important;
  }
  
  .contact-item {
    font-size: 13px !important;
    margin-bottom: 12px;
  }
  
  .footer-nav-wrapper .row {
    row-gap: 24px;
  }
  
  .nav-column h6 {
    font-size: 14px !important;
    margin-bottom: 12px;
  }
  
  .footer-nav a {
    font-size: 13px !important;
    padding: 6px 0;
  }
  
  .footer-bottom {
    padding: 20px 0 !important;
  }
  
  .footer-bottom .row {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .copyright p {
    font-size: 12px !important;
  }
  
  .legal-links {
    justify-content: center !important;
    font-size: 12px !important;
  }
}

/* ============================================
   NOTICE TICKER
============================================ */

@media (max-width: 767px) {
  .latest-updates-section {
    display: block !important;
    padding: 0;
    border-top: 3px solid #fbbf24;
    border-bottom: 3px solid #fbbf24;
  }
  
  .updates-bar {
    min-height: 50px !important;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .updates-label {
    width: auto;
    min-width: 90px;
    clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%);
    padding: 12px 24px 12px 16px !important;
    text-align: left;
    font-size: 10px !important;
    flex-shrink: 0;
    letter-spacing: 0.8px;
  }
  
  .updates-label i {
    font-size: 14px !important;
  }
  
  .updates-ticker-wrap {
    padding: 0 12px !important;
    flex: 1;
    overflow: hidden;
  }
  
  .updates-ticker-wrap::before,
  .updates-ticker-wrap::after {
    width: 40px !important;
  }
  
  .ticker-item {
    font-size: 12px !important;
    padding: 0 20px !important;
    white-space: nowrap;
    gap: 6px !important;
  }
  
  .ticker-item i.bi-dot {
    font-size: 20px !important;
  }
  
  .ticker-item strong {
    font-size: 12px !important;
  }
}

/* ============================================
   COURSES TABS
============================================ */

@media (max-width: 991px) {
  .courses-section .nav-tabs {
    margin-bottom: 24px;
  }
  
  .courses-section .nav-tabs .nav-link {
    padding: 12px 16px !important;
  }
  
  .courses-section .image-box img {
    height: 200px !important;
  }
}

@media (max-width: 767px) {
  .courses-section .nav-tabs .nav-link {
    font-size: 14px !important;
  }
  
  .courses-section .nav-tabs .nav-link .icon-box {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }
  
  .courses-section .tab-content .content-box {
    padding: 24px 20px !important;
  }
  
  .courses-section h3 {
    font-size: 20px !important;
  }
  
  .courses-section .features-list li {
    font-size: 13px !important;
  }
}

/* ============================================
   BANNER SLIDER
============================================ */

@media (max-width: 767px) {
  .hero-banner-slider {
    margin-top: 20px !important;
  }
  
  .banner-slide-card {
    aspect-ratio: 16/10 !important;
  }
  
  .banner-slide-caption {
    font-size: 13px !important;
    padding: 20px 16px 12px !important;
  }
  
  .banner-slider-badge {
    bottom: -14px !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
  }
  
  .banner-slider-badge i {
    font-size: 14px !important;
  }
  
  .bannerSwiper .swiper-button-prev,
  .bannerSwiper .swiper-button-next {
    width: 32px !important;
    height: 32px !important;
  }
  
  .bannerSwiper .swiper-button-prev::after,
  .bannerSwiper .swiper-button-next::after {
    font-size: 12px !important;
  }
}

/* ============================================
   BUTTONS & LINKS
============================================ */

@media (max-width: 767px) {
  .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
  
  .btn-primary,
  .btn-outline {
    min-width: auto;
  }
}

/* ============================================
   UTILITIES
============================================ */

/* Spacing adjustments for mobile */
@media (max-width: 767px) {
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-5 {
    margin-top: 2rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .g-4 {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1rem !important;
  }
  
  .g-5 {
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 1.5rem !important;
  }
}

/* Hide elements on mobile if needed */
@media (max-width: 767px) {
  .d-none-mobile {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 768px) {
  .d-mobile-only {
    display: none !important;
  }
}

/* ============================================
   IMAGES & MEDIA
============================================ */

@media (max-width: 767px) {
  img {
    max-width: 100%;
    height: 45px;
  }
  
  .img-fluid {
    width: 100%;
  }
}

/* ============================================
   TABLES (Admin Panel)
============================================ */

@media (max-width: 991px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 800px;
    font-size: 13px;
  }
  
  .table th,
  .table td {
    padding: 8px !important;
    white-space: nowrap;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */

@media (max-width: 767px) {
  #scroll-top {
    width: 40px !important;
    height: 40px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
  
  #scroll-top i {
    font-size: 20px !important;
  }
  
  /* WhatsApp button mobile positioning */
  .whatsapp-float {
    bottom: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
    font-size: 28px !important;
  }
  
  /* When scroll-top is visible, move WhatsApp button to the left */
  .scroll-top.active ~ .whatsapp-float {
    right: 75px !important;
  }
}

/* ============================================
   PRELOADER
============================================ */

@media (max-width: 767px) {
  #preloader {
    font-size: 14px;
  }
}

/* ============================================
   LANDSCAPE ORIENTATION
============================================ */

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding-top: 80px !important;
    padding-bottom: 30px !important;
  }
  
  .dc-page-hero {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
  .header,
  .footer,
  #scroll-top,
  #bookSessionPopup,
  .btn,
  .cta-wrapper {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  .section {
    page-break-inside: avoid;
  }
}
