/* Helper Classes */
.sticky-share-sidebar {
    top: 8rem;
    z-index: 10;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.sticky-about-us {
    top: 6rem;
}

/* Hero Section */
.hero-card {
    border-radius: 0.75rem;
}

.hero-card .ratio {
    min-height: 320px;
}

@media (min-width: 768px) {
    .hero-card .ratio {
        min-height: 480px;
    }
}

/* Overlay Gradient */
.overlay-gradient {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Overlay Card */
.news-card-overlay {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-overlay:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 1.35rem;
    position: relative;
}

/* Horizontal News Card */
.news-card-horizontal {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.news-card-horizontal:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-card-horizontal img {
    border-radius: 0.5rem;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Badge colors per category */
.badge.bg-success {
    background-color: #20c997 !important;
}

/* Navbar Layout */
.navbar-row {
    min-height: 48px;
}

.navbar-left .navbar-brand {
    font-size: 1.1rem;
}

.navbar-center .nav-link {
    white-space: nowrap;
    color: #333;
    transition: color 0.2s;
}

.navbar-center .nav-link:hover {
    color: #0d6efd;
}

/* Weather Button */
.btn-weather {
    background: #f0f6ff;
    border: 1px solid #d6e4f0;
    border-radius: 20px;
    padding: 4px 12px;
    color: #333;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-weather:hover {
    background: #dce9f7;
    border-color: #b8cfe0;
    color: #0d6efd;
}

.btn-weather i {
    color: #f0a500;
}

.weather-temp {
    font-weight: 600;
}

/* Social Icons */
.social-icon {
    font-size: 0.9rem;
    padding: 0 6px;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #0d6efd !important;
}

/* Search Toggle */
.search-form .search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.search-form.active .search-input {
    width: 180px;
    opacity: 1;
    padding: 0.25rem 0.6rem;
    border: 1px solid #dee2e6;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .search-form.active .search-input {
        width: 120px;
    }
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.hide-social {
    opacity: 0 !important;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    transition: opacity 0.3s ease, width 0.3s ease;
}

/* Weather Modal */
.weather-detail {
    font-size: 0.9rem;
}

.weather-detail .weather-icon {
    font-size: 2.5rem;
    color: #f0a500;
}

.weather-detail .weather-big-temp {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}