/* 
FinReg News - Responsive CSS
Theme: Financial Regulatory News Website
*/

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section-heading h3 {
    font-size: 1.8rem;
  }
  
  .section-heading p {
    font-size: 1rem;
  }
  
  .hero-swiper {
    height: 70vh;
    min-height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.25rem;
  }
  
  .service-icon img {
    height: 160px;
  }
  
  .member-image img {
    height: 250px;
  }
  
  .blog-image img {
    height: 180px;
  }
  
  .case-image img,
  .expert-image img {
    height: 200px;
  }
  
  .policy-card,
  .feature-box,
  .info-box {
    padding: var(--spacing-sm);
  }
  
  .region-box {
    padding: var(--spacing-sm);
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }
  
  .contact-item i {
    margin-bottom: var(--spacing-xs);
    margin-right: 0;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 2.5rem;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.85rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
  
  .section-heading h3 {
    font-size: 2rem;
  }
  
  .hero-swiper {
    height: 75vh;
    min-height: 450px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .service-icon img {
    height: 170px;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 3.25rem;
  }
  
  .service-icon img {
    height: 200px;
  }
  
  .feature-box {
    padding: var(--spacing-md);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .service-item:hover,
  .feature-box:hover,
  .price-card:hover,
  .team-member:hover,
  .blog-post:hover,
  .case-study:hover,
  .expert-card:hover,
  .mini-case:hover,
  .info-box:hover,
  .policy-card:hover,
  .strategy-item:hover,
  .tech-item:hover,
  .region-box:hover,
  .trend-item:hover {
    transform: none !important;
  }
  
  .team-member:hover .member-image img,
  .blog-post:hover .blog-image img,
  .case-study:hover .case-image img,
  .expert-card:hover .expert-image img {
    transform: none !important;
  }
  
  .hero-swiper,
  .reviews-swiper {
    --swiper-autoplay-delay: 0;
  }
}

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
  .header {
    padding: 0.75rem 0;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-color);
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}

/* Adjustments for service cards on mobile */
@media (max-width: 767.98px) {
  .service-item {
    margin-bottom: 2rem;
  }
  
  .service-item:last-child {
    margin-bottom: 0;
  }
  
  .service-item ul li {
    padding-left: 1.25rem;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .price-card.featured:hover {
    transform: translateY(-10px);
  }
}

/* Additional adjustments for very small screens */
@media (max-width: 359.98px) {
  .hero-swiper {
    min-height: 350px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.1rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .section-heading h2 {
    font-size: 0.8rem;
  }
  
  .section-heading h3 {
    font-size: 1.5rem;
  }
  
  .section-heading p {
    font-size: 0.9rem;
  }
  
  .service-item h4,
  .price-header h4,
  .feature-box h4,
  .info-box h4,
  .member-info h4,
  .blog-content h4 {
    font-size: 1.1rem;
  }
  
  .price {
    font-size: 2rem;
  }
  
  .strategy-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 0.9rem;
  }
}

/* Print styles */
@media print {
  .header,
  .footer-section,
  .hero-section .swiper-button-next,
  .hero-section .swiper-button-prev,
  .hero-section .swiper-pagination {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
  }
  
  section {
    padding: 1cm 0;
    page-break-inside: avoid;
  }
  
  .hero-swiper {
    height: auto;
  }
  
  .hero-slide-bg::before {
    display: none;
  }
  
  .hero-content {
    color: #000;
  }
  
  .hero-content h1,
  .hero-content h2 {
    color: #000;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .service-item,
  .feature-box,
  .price-card,
  .team-member,
  .review-item,
  .info-box,
  .blog-post,
  .expert-card,
  .case-study,
  .region-box,
  .trend-item,
  .tech-item {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Mobile-specific touch enhancements */
@media (hover: none) {
  .service-item:hover,
  .feature-box:hover,
  .price-card:hover,
  .team-member:hover,
  .blog-post:hover,
  .case-study:hover,
  .expert-card:hover,
  .mini-case:hover,
  .info-box:hover,
  .policy-card:hover,
  .strategy-item:hover,
  .tech-item:hover,
  .region-box:hover,
  .trend-item:hover {
    transform: none;
  }
  
  .feature-item:hover {
    background-color: transparent;
    transform: none;
  }
  
  .footer-links ul li a:active {
    opacity: 1;
    color: var(--accent-light);
  }
}

/* Landscape-specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-swiper {
    height: auto;
    min-height: 350px;
  }
  
  .hero-content {
    padding: var(--spacing-md) 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.25rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
} 