/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet - Large (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .content-grid {
        grid-template-columns: 1fr 300px;
        gap: var(--spacing-md);
    }
    .article-title{
        font-size: 1.5rem;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .article-wrapper {
        grid-template-columns: 1fr 300px;
    }
    
    /* Contact Button Laptop View */
    .nav-wrapper {
        /* flex-wrap: nowrap; */
        gap: 10px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .contact-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .search-form input {
        width: 140px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    /* Bottom Ribbon Tablet */
    .bottom-nav-links {
        gap: 6px;
    }

    .nav-block {
        padding: 10px 12px;
        min-width: 70px;
        font-size: 0.8rem;
    }

    .nav-block i {
        font-size: 1.1rem;
    }
    
    /* Contact Page Tablet */
    /* Contact Page Responsive */
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-form-modern .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-header .header-icon {
        width: 60px;
        height: 60px;
    }

    .contact-form-header .header-icon i {
        font-size: 1.5rem;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .contact-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-section h1 {
        font-size: 2rem;
    }
    
    .contact-form-section {
        padding: 30px;
    }
    
    .method-card {
        padding: 20px;
    }
    .btn-submit-modern{
        width: 70%;
    }
    .contact-form-wrapper{
        height: 100%;
    }
}

/* Tablet - Medium (max-width: 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 99;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 12px;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Header Actions Visible in Mobile */
    .header-actions {
        display: flex !important;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .contact-btn {
        display: inline-block !important;
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .search-form input {
        width: 100px;
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .search-form button {
        padding: 6px 10px;
    }

    .breaking-content {
        font-size: 0.9rem;
    }

    .hero-featured {
        height: 400px;
    }

    .hero-overlay {
        padding: var(--spacing-md);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .category-card.featured .card-image {
        height: 200px;
    }

    .article-list-item {
        grid-template-columns: 1fr;
    }

    .article-list-image {
        height: 200px;
    }

    .theme-toggle,
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top {
        bottom: 75px;
    }

    /* Bottom Ribbon Mobile */
    .nav-bottom-ribbon {
        padding: 8px 0;
    }

    .bottom-nav-links {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-block {
        padding: 8px 10px;
        min-width: 60px;
        font-size: 0.75rem;
    }

    .nav-block i {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .nav-block span {
        font-size: 0.7rem;
    }
    .related-grid{
         grid-template-columns: repeat(1, 1fr);
    }
    .btn-submit-modern{
        width: 70%;
    }
    .contact-form-wrapper{
        height: 100%;
    }
}

/* Mobile - Large (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 6px;
        --spacing-sm: 12px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav-wrapper {
        padding: var(--spacing-sm) 0;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo .tagline {
        font-size: 0.65rem;
    }

    .search-form {
        display: none;
    }

    .breaking-label {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .hero-featured {
        height: 300px;
    }

    .hero-category {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .news-card {
        font-size: 0.9rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .trending-number {
        font-size: 1.2rem;
        min-width: 30px;
    }

    .trending-content h4 {
        font-size: 0.85rem;
    }

    .widget-title {
        font-size: 1.1rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-link,
    .page-num {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .theme-toggle,
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top {
        bottom: 65px;
    }

    /* Bottom Ribbon Small Mobile */
    .nav-bottom-ribbon {
        padding: 6px 0;
    }

    .bottom-nav-links {
        gap: 3px;
    }

    .nav-block {
        padding: 6px 8px;
        min-width: 50px;
        font-size: 0.7rem;
    }

    .nav-block i {
        font-size: 0.9rem;
    }
     .footer-col {
        text-align: left;
    }
    .footer-col ul {
        align-items:flex-start;
    }
    .btn-submit-modern{
        width: 70%;
    }
    .contact-form-wrapper{
        height: 100%;
    }
}

/* Mobile - Small (max-width: 360px) */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .hero-featured {
        height: 250px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    .sidebar,
    .share-buttons,
    .comments-section,
    .footer,
    .theme-toggle,
    .back-to-top,
    .breaking-news {
        display: none !important;
    }

    .article-main {
        box-shadow: none;
        padding: 0;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-featured {
        height: 350px;
    }
}

/* Mega Dropdown Mobile */
@media (max-width: 768px) {
    .mega-dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: var(--bg-hover);
        padding: 0;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin-top: 5px;
        width: 100%;
        display: block;
    }

    .mega-dropdown:hover .mega-dropdown-menu,
    .mega-dropdown.active .mega-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 1000px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .mega-dropdown-menu .mega-dropdown-section {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 15px;
    }

    .mega-dropdown-menu .mega-dropdown-section:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

    .mega-dropdown-menu .mega-dropdown-section .state-card {
        flex-direction: row;
        padding: 10px 12px;
        gap: 10px;
    }

    .mega-dropdown-menu .mega-dropdown-section .state-icon {
        width: 35px;
        height: 35px;
    }

    .mega-dropdown-menu .mega-dropdown-section .state-info h4 {
        font-size: 0.85rem;
    }

    .mega-dropdown-menu .mega-dropdown-section .state-info p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .nav-menu.active .mega-dropdown-menu {
        display: block;
    }

    /* Nav Ribbon Mobile */
    .nav-ribbon {
        display: none;
    }

    .nav-ribbon.active {
        display: block;
    }

    .nav-ribbon .nav-menu {
        position: static;
        flex-direction: column;
        padding: var(--spacing-md);
        background: var(--bg-primary);
        box-shadow: var(--shadow);
        gap: 0;
    }

    .nav-ribbon .nav-menu li {
        width: 100%;
    }

    .nav-ribbon .nav-menu li a {
        display: block;
        padding: 12px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   ABOUT PAGE RESPONSIVE STYLES
   =================================== */

/* About Page Hero */



/* About Page Tablet */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-lead {
        font-size: 1.1rem;
    }

    .about-section {
        padding: var(--spacing-lg);
    }

    .about-section h2 {
        font-size: 1.75rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .mission-list li {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .about-hero h1 {
        font-size: 1.75rem;
    }

    .about-lead {
        font-size: 1rem;
    }

    .section-icon {
        width: 60px;
        height: 60px;
    }

    .section-icon i {
        font-size: 1.75rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-section p {
        font-size: 1rem;
    }
}

/* ===================================
   CONTACT PAGE RESPONSIVE STYLES - NEW DESIGN
   =================================== */

/* Contact Page Tablet */
@media (max-width: 1024px) {
    .connect-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .message-follow-wrapper {
        grid-template-columns: 2fr 1fr;
        gap: var(--spacing-xl);
    }

    .connect-card {
        padding: var(--spacing-xl);
    }

    .connect-icon {
        width: 60px;
        height: 60px;
    }

    .connect-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .connect-title {
        font-size: 2rem;
    }

    .connect-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .message-follow-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .message-section,
    .follow-section {
        padding: var(--spacing-xl);
    }

    .social-icons-new {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-page-new {
        padding: var(--spacing-xl) 0;
    }

    .connect-title {
        font-size: 1.75rem;
    }

    .connect-subtitle {
        font-size: 1rem;
    }

    .connect-card {
        padding: var(--spacing-lg);
    }

    .message-section,
    .follow-section {
        padding: var(--spacing-lg);
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .btn-send-message {
        padding: 12px 30px;
    }
}

/* Dark Theme Support */
body.dark-theme .connect-card,
body.dark-theme .message-section,
body.dark-theme .follow-section {
    background: var(--bg-secondary);
}

body.dark-theme .input-with-icon input,
body.dark-theme .input-with-icon textarea {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-theme .input-with-icon input:focus,
body.dark-theme .input-with-icon textarea:focus {
    background: var(--bg-secondary);
}

/* Search Page Tablet */
@media (max-width: 1024px) {
    .article-list-item {
        grid-template-columns: 250px 1fr;
    }

    .article-list-image {
        height: 180px;
    }
      .btn-send-message{
        width: 60%;
    }
    .newsletter-form{
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .search-header h1 {
        font-size: 1.75rem;
    }

    .article-list-item {
        grid-template-columns: 1fr;
    }

    .article-list-image {
        height: 220px;
    }

    .article-list-title {
        font-size: 1.35rem;
    }

    .no-results {
        padding: var(--spacing-2xl);
    }

    .no-results i {
        font-size: 3rem;
    }

    .no-results h2 {
        font-size: 1.75rem;
    }
    .btn-send-message{
        width: 60%;
    }
}

@media (max-width: 480px) {
    .search-header h1 {
        font-size: 1.5rem;
    }

    .search-count {
        font-size: 0.9rem;
    }

    .article-list-content {
        padding: var(--spacing-sm);
    }

    .article-list-title {
        font-size: 1.2rem;
    }

    .article-list-excerpt {
        font-size: 0.9rem;
    }

    .article-list-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .no-results {
        padding: var(--spacing-xl);
    }

    .no-results h2 {
        font-size: 1.5rem;
    }

    .no-results p {
        font-size: 1rem;
    }
    .share-btn{
        /* padding: 5px 10px; */
        padding: 0;
        font-weight: 400;
        font-size: 18px;
    }
    .btn-send-message{
        width: 70%;
    }
}

/* ===================================
   NEWSLETTER POPUP STYLES
   =================================== */



/* Newsletter Popup Mobile */
@media (max-width: 768px) {
    .newsletter-popup {
        min-width: auto;
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .newsletter-popup {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .popup-content {
        padding: var(--spacing-md);
    }

    .popup-icon {
        font-size: 1.5rem;
    }

    .popup-message {
        font-size: 0.85rem;
    }
}

/* Dark Theme Support for New Elements */
body.dark-theme .about-section,
body.dark-theme .contact-info-card,
body.dark-theme .method-card,
body.dark-theme .social-connect,
body.dark-theme .contact-form-section,
body.dark-theme .search-result-item,
body.dark-theme .no-results {
    background: var(--bg-secondary);
}

body.dark-theme .value-card,
body.dark-theme .contact-info-card,
body.dark-theme .mission-list li {
    background: var(--bg-primary);
}

body.dark-theme .newsletter-popup {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.dark-theme .popup-message {
    color: var(--text-primary);
}

body.dark-theme .popup-close {
    color: var(--text-secondary);
}

body.dark-theme .popup-close:hover {
    color: var(--text-primary);
}

/* ===================================
   RESPONSIVE STYLES FOR ENHANCED ABOUT SECTIONS
   =================================== */
@media (max-width: 992px) {
    .about-section-enhanced {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-section-enhanced.reverse .section-content-side,
    .about-section-enhanced.reverse .section-image-side {
        order: initial;
    }

    .section-header-enhanced h2 {
        font-size: 2rem;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .image-wrapper img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .section-icon-large {
        width: 60px;
        height: 60px;
    }

    .section-icon-large i {
        font-size: 1.8rem;
    }

    .section-header-enhanced h2 {
        font-size: 1.75rem;
    }

    .team-stats {
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }
}
