/* CSS untuk Portal Berita TektalkMedia */
/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Search Box Styles */
.search-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0;
    display: flex;
    align-items: stretch;
    width: 200px;
    height: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-box.expanded {
    width: 250px;
    background: rgba(255, 255, 255, 0.15);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 12px;
    flex: 1;
    font-size: 12px;
    outline: none;
    line-height: 30px;
    height: 100%;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.search-box button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 0;
    margin: 0;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-box button i {
    font-size: 12px;
    line-height: 1;
    color: #fff;
    display: block;
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.header-top {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-time {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links a {
    color: #fff;
    margin-left: 10px;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
    background: #dc3545;
}

.header-content-unified {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    overflow: hidden;
    padding: 0 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

/* Inline Navigation */
.nav-inline {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    align-items: center;
}

.nav-menu-inline {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu-inline::-webkit-scrollbar {
    display: none;
}

.nav-menu-inline li {
    position: relative;
    flex-shrink: 0;
}

.nav-menu-inline a {
    display: block;
    padding: 10px 12px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu-inline a:hover,
.nav-menu-inline a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateY(-1px);
}





/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* Remove old navbar styles */
.navbar {
    display: none;
}

/* Responsive Design for Unified Header */
@media (max-width: 1200px) {
    .header-content-unified {
        gap: 8px;
        padding: 0 8px;
    }
    
    .logo {
        font-size: 20px;
        min-width: 100px;
    }
    
    .nav-menu-inline {
        gap: 2px;
    }
    
    .nav-menu-inline a {
        padding: 8px 8px;
        font-size: 11px;
        min-width: fit-content;
    }
    

}

@media (max-width: 768px) {
    .header-content-unified {
        gap: 5px;
        padding: 0 5px;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 18px;
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .nav-inline {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .nav-menu-inline {
        gap: 2px;
        padding: 0 3px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .nav-menu-inline a {
        padding: 6px 6px;
        font-size: 10px;
        min-width: fit-content;
        flex-shrink: 0;
    }
    

}

@media (max-width: 480px) {
    .header-main {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 20px;
        min-width: 70px;
    }
    
    .nav-menu-inline {
        gap: 1px;
        padding: 0 2px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .nav-menu-inline a {
        padding: 6px 5px;
        font-size: 9px;
        min-width: fit-content;
        flex-shrink: 0;
        text-transform: capitalize;
    }
    

}

/* Breaking News */
.breaking-news {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    padding: 20px 0;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.breaking-label {
    background: rgba(255,255,255,0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.breaking-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Main Content Layout */
.main-content {
    padding: 40px 0;
    background: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Featured Article */
.featured-article {
    position: relative;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.featured-article img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover img {
    transform: scale(1.05);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    padding: 50px 35px 35px;
}

.featured-content .category {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.featured-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-content .excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.article-meta .author {
    font-weight: 500;
}

/* Article Grid */
.articles-grid {
    display: grid;
    gap: 25px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: rgba(220, 53, 69, 0.1);
}

.article-card-horizontal {
    display: flex;
    align-items: center;
}

.article-card-horizontal img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-horizontal img {
    transform: scale(1.05);
}

.article-card-horizontal .content {
    padding: 20px;
    flex: 1;
}

.article-card-vertical img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-vertical img {
    transform: scale(1.05);
}

.article-card-vertical .content {
    padding: 20px;
}

.article-card .category {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.article-card h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-card:hover h3 {
    color: #dc3545;
}

.article-card .excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-card .meta {
    color: #95a5a6;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #dc3545;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 2px;
}

.popular-list {
    list-style: none;
}

.popular-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.popular-list li:hover {
    background: #f8f9fa;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-number {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.popular-content h4 {
    font-size: 15px;
    line-height: 1.4;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s ease;
}

.popular-list li:hover .popular-content h4 {
    color: #dc3545;
}

.popular-content .meta {
    color: #95a5a6;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 50px 0 25px;
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #c82333, #dc3545);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 2px;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    line-height: 1.7;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #dc3545;
    text-decoration: none;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.footer-links li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-size: 10px;
    top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    color: #95a5a6;
    font-weight: 500;
}

/* Responsive Design */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .featured-content h1 {
        font-size: 32px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 1140px;
    }
    
    .logo {
        font-size: 30px;
    }
    
    .featured-content h1 {
        font-size: 26px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        font-size: 28px;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    /* Hide inline navigation on mobile */
    .nav-inline {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #dc3545;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .nav-inline.active {
        display: block;
    }
    
    .nav-menu-inline {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    
    .nav-menu-inline li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu-inline li:last-child {
        border-bottom: none;
    }
    
    .nav-menu-inline a {
        padding: 15px 20px;
        font-size: 14px;
        display: block;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-menu-inline a:hover {
        background: rgba(255,255,255,0.1);
        transform: none;
    }
    

    

    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-menu a {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .featured-content {
        padding: 25px;
    }
    
    .featured-content h1 {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .featured-content .excerpt {
        font-size: 15px;
    }
    
    .article-card-horizontal {
        flex-direction: column;
    }
    
    .article-card-horizontal img {
        width: 100%;
        height: 180px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        padding: 6px 0;
        font-size: 11px;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .date-time {
        flex-direction: column;
        gap: 3px;
    }
    
    .social-links {
        margin-top: 3px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-content-unified {
        gap: 10px;
        padding: 0 5px;
    }
    
    .logo {
        font-size: 22px;
        margin-bottom: 10px;
        min-width: 100px;
    }
    

    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        background: #f8f9fa;
        border-radius: 6px;
        padding: 8px;
        margin-top: 10px;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
        min-height: 40px;
        display: flex;
        align-items: center;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .breaking-news {
        margin: 15px 0;
        padding: 15px 0;
        border-radius: 8px;
    }
    
    .breaking-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 15px;
    }
    
    .breaking-label {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
        margin-bottom: 5px;
    }
    
    .breaking-text {
        font-size: 14px;
        line-height: 1.5;
        padding: 0;
        text-align: center;
    }
    
    .featured-article {
        margin-bottom: 25px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-content h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .featured-content .excerpt {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .featured-content .category {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .article-meta {
        font-size: 13px;
        gap: 10px;
    }
    
    .articles-grid {
        gap: 15px;
    }
    
    .article-card-horizontal .content {
        padding: 15px;
    }
    
    .article-card-vertical .content {
        padding: 15px;
    }
    
    .article-card h3 {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .article-card .excerpt {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .sidebar {
        margin-top: 25px;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
    
    .sidebar-widget h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer {
        padding: 30px 0 20px;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
        padding: 0 15px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .footer-section p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: justify;
    }
    
    .footer-links {
        padding-left: 0;
    }
    
    .footer-links li {
        margin-bottom: 10px;
        padding-left: 20px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 13px;
        text-align: center;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-top {
        font-size: 10px;
        padding: 5px 0;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-content-unified {
        gap: 8px;
        padding: 0;
    }
    
    .breaking-news {
        margin: 10px 0;
        padding: 12px 0;
    }
    
    .breaking-content {
        gap: 10px;
        padding: 0 10px;
    }
    
    .breaking-label {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .breaking-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .logo {
        font-size: 20px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        min-width: 90px;
    }
    
    .search-box {
        display: none !important;
    }
    

    
    .nav-menu {
        padding: 6px;
        margin-top: 8px;
        border-radius: 5px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .breaking-text {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .featured-content {
        padding: 15px;
    }
    
    .featured-content h1 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .featured-content .excerpt {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .featured-content .category {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .article-card-horizontal .content,
    .article-card-vertical .content {
        padding: 12px;
    }
    
    .article-card h3 {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .article-card .excerpt {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .article-card .category {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .sidebar-widget h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .footer {
        padding: 25px 0 15px;
        margin-top: 30px;
    }
    
    .footer-content {
        gap: 25px;
        padding: 0 10px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .footer-section a {
        font-size: 13px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
        padding-left: 18px;
    }
    
    .footer-bottom {
        font-size: 12px;
        padding-top: 15px;
        line-height: 1.4;
    }
}

/* iPhone Specific (375px-414px) */
@media (max-width: 414px) and (min-width: 375px) {
    .header-top {
        padding: 4px 0;
        gap: 4px;
    }
    
    .date-time, .social-links {
        font-size: 10px;
        gap: 4px;
    }
    
    .header-main {
        padding: 8px 0;
    }
    
    .logo {
        font-size: 20px;
        margin-bottom: 8px;
        letter-spacing: 0.3px;
    }
    
    /* Icon-only search for iPhone */
    .search-box {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .search-box.expanded {
        width: 75% !important;
        max-width: 220px !important;
        border-radius: 18px !important;
        background: rgba(255,255,255,0.2) !important;
    }
    
    .search-box input {
        opacity: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        background: none !important;
        border: none !important;
        color: #fff !important;
        transition: all 0.3s ease !important;
    }
    
    .search-box.expanded input {
        opacity: 1 !important;
        width: calc(100% - 36px) !important;
        padding: 10px 15px !important;
    }
    
    .search-box button {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        font-size: 14px !important;
        background: rgba(255,255,255,0.1) !important;
        border: none !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }
    
    .search-box.expanded button {
        border-radius: 0 18px 18px 0 !important;
        background: rgba(255,255,255,0.2) !important;
    }
    
    .nav-menu {
        padding: 5px;
        margin-top: 6px;
        border-radius: 4px;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 32px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .featured-content h1 {
        font-size: 16px;
    }
    
    .featured-content .excerpt {
        font-size: 12px;
    }
    
    .article-card h3 {
        font-size: 13px;
    }
    
    .article-card .excerpt {
        font-size: 11px;
    }
    
    .nav-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Touch-Friendly Enhancements */
@media (max-width: 768px) {
    /* Ensure all clickable elements are touch-friendly (minimum 44px) */
    .nav-menu a,
    .search-box button,
    .article-card {
        min-height: 44px;
    }
    
    /* Better spacing for touch */
    .article-card {
        margin-bottom: 15px;
    }
    
    /* Improve readability */
    body {
        font-size: 16px; /* Prevent zoom on iOS */
        line-height: 1.5;
    }
    
    /* Better button styling */
    .search-box button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Override for iPhone specific sizing */
    @media (max-width: 414px) and (min-width: 375px) {
        .search-box button {
            width: 26px;
            height: 26px;
            padding: 0;
            font-size: 11px;
        }
    }
    
    /* Improve form elements */
    input, textarea, select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    .header-top,
    .nav-menu,
    .search-box,
    .sidebar,
    .footer {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .featured-content h1 {
        font-size: 24px;
        color: #000;
    }
    
    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
}

/* Loading Animation */
/* Removed loading animation */

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.hidden { display: none; }
.visible { display: block; }