/* Modern Design CSS for NHRC Website */
/* Based on Tailwind CSS approach with custom utility classes */

:root {
    --primary-color: #003366;
    --primary-hover: #002244;
    --text-gray-500: #6b7280;
    --text-gray-600: #4b5563;
    --text-gray-700: #374151;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --border-gray-200: #e5e7eb;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cambria', 'Times New Roman', serif;
    line-height: 0.5;
    color: #1f2937;
}

/* Utility Classes */
.container-modern {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }

.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: var(--text-gray-500); }
.text-gray-600 { color: var(--text-gray-600); }
.text-gray-700 { color: var(--text-gray-700); }
.text-primary { color: var(--primary-color); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-200 { color: #bfdbfe; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--bg-gray-50); }
.bg-gray-100 { background-color: var(--bg-gray-100); }
.bg-primary { background-color: var(--primary-color); }
.bg-primary-dark { background-color: var(--primary-hover); }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-gray-100 { border-color: var(--bg-gray-100); }
.border-gray-200 { border-color: var(--border-gray-200); }

.overflow-hidden { overflow: hidden; }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.10); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Modern Header Styles */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.modern-header-top {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
}

.modern-header-top a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.modern-header-top a:hover {
    opacity: 0.8;
}

.modern-header-main {
    padding: 0.1rem 0;
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 320px;
    width: auto;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.modern-logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modern-logo img {
    height: 52px;
    width: auto;
    flex-shrink: 0;
}

.modern-logo h1 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
    max-width: 280px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
.modern-logo-visible {
    display: block !important;
}
/* Modern Navigation */
.modern-nav {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: nowrap;
}

.modern-nav-item {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.modern-nav-item:hover {
    color: var(--blue-700);
}

.modern-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-top: 2px solid var(--primary-color);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    z-index: 100;
}

.modern-nav-item:hover .modern-dropdown {
    display: block;
}

.modern-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.modern-dropdown a:hover {
    background-color: var(--bg-gray-100);
    color: var(--primary-color);
}

/* Marquee Styles */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background-color: #f0f4f8;
    border-top: 1px solid var(--border-gray-200);
    border-bottom: 1px solid var(--border-gray-200);
    padding: 0.5rem 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Slider Styles */
.modern-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.modern-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.modern-hero-slide.active {
    opacity: 1;
}

.modern-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.modern-hero-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.modern-hero-content h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.modern-hero-content p {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.modern-hero-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.modern-hero-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.modern-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.modern-hero-nav:hover {
    background: rgba(255,255,255,0.4);
}

.modern-hero-nav.prev { left: 1rem; }
.modern-hero-nav.next { right: 1rem; }

.modern-hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 0.5rem;
}

.modern-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.modern-hero-dot.active {
    background: white;
    transform: scale(1.25);
}

/* Info Cards Styles */
.info-cards-section {
    background-color: var(--bg-gray-100);
    padding: 4rem 1rem;
}

.info-cards-title {
    text-align: center;
    margin-bottom: 3rem;
}

.info-cards-title h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-cards-title::after {
    content: '';
    display: block;
    width: 96px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}

.info-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: #dbeafe;
    transform: translateY(-2px);
}

.info-card-icon {
    background-color: var(--bg-gray-50);
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.info-card:hover .info-card-icon {
    transform: scale(1.1);
}

.info-card h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-gray-500);
    line-height: 1.5;
}

/* News Section Styles */
.news-section {
    padding: 3rem 1rem;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray-200);
    flex-wrap: wrap;
    gap: 1rem;
}

.news-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-tabs {
    display: flex;
    gap: 1rem;
}

.news-tab {
    padding: 1rem 0.5rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.news-tab:hover {
    color: var(--text-gray-600);
}

.news-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.news-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid var(--bg-gray-100);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.news-card-image {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-body h3 {
    color: var(--blue-700);
}

.news-card-body p {
    font-size: 0.875rem;
    color: var(--text-gray-600);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    color: var(--blue-600);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
}

.news-card-link:hover {
    text-decoration: underline;
}

/* Media Gallery Styles */
.media-gallery {
    padding: 4rem 1rem;
}

.media-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.media-gallery-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
}

.media-gallery-header p {
    color: var(--text-gray-600);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1rem;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.media-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.media-item:hover img {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay h4 {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Partners Section */
.partners-section {
    background: white;
    padding: 4rem 1rem;
    border-top: 1px solid var(--bg-gray-100);
}

.partners-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.partners-slider-container {
    overflow: hidden;
    position: relative;
}

.partners-slider {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: partnersSlide 30s linear infinite;
}

@keyframes partnersSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-slider:hover {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s;
    filter: grayscale(1);
    opacity: 0.6;
    flex-shrink: 0;
}

.partner-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.partner-item img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.partner-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray-600);
}

/* Modern Footer */
.modern-footer {
    background-color: var(--primary-hover);
    color: white;
    padding: 4rem 1rem 2rem;
}

.modern-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.modern-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modern-footer-logo img {
    height: 46px;
    filter: brightness(0) invert(1);
}

.modern-footer-logo h3 {
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    font-size: 0.85rem;
    max-width: 240px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.modern-footer p {
    color: #bfdbfe;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modern-footer-social {
    display: flex;
    gap: 1rem;
}

.modern-footer-social a {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.modern-footer-social a:hover {
    background: rgba(255,255,255,0.2);
}

.modern-footer h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--blue-600);
    padding-left: 1rem;
}

.modern-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer ul li {
    margin-bottom: 1rem;
}

.modern-footer ul li a {
    color: #bfdbfe;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.modern-footer ul li a:hover {
    color: white;
}

.modern-footer-contact li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.modern-footer-contact i {
    color: #60a5fa;
    margin-top: 2px;
}

.modern-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #bfdbfe;
}

.modern-footer-bottom a {
    color: #bfdbfe;
    text-decoration: none;
}

.modern-footer-bottom a:hover {
    color: white;
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-weight: 700;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s;
}

.floating-btn:hover span {
    max-width: 300px;
}

/* Accessibility Features */
.high-contrast {
    filter: contrast(1.5) grayscale(1);
}

.font-large {
    font-size: 1.25em !important;
}

.font-large * {
    font-size: 1.25em !important;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .modern-nav {
        display: none;
    }
    
    .modern-logo {
        max-width: 280px;
    }
    
    .modern-logo h1 {
        font-size: 0.8rem;
    }
    
    .modern-hero-content h2 {
        font-size: 2rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-logo {
        max-width: 280px;
    }
    
    .modern-logo img {
        height: 44px;
    }
    
    .modern-logo h1 {
        font-size: 0.72rem;
    }
    
    .modern-hero {
        height: 400px;
    }
    
    .modern-hero-content h2 {
        font-size: 1.5rem;
    }
    
    .modern-hero-content p {
        font-size: 1rem;
    }
    
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .media-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .media-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .modern-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container-modern {
        padding: 0 0.75rem;
    }
    
    .modern-logo h1 {
        font-size: 0.68rem;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Adder component styles */
.about-section,
.features-section,
.footer-actions,
.hr-section,
.library-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e31837, #ff4d6d);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.8;
}

.about-section { background: #f8f9fa; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.about-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.about-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.about-card:hover .about-image img { transform: scale(1.1); }
.about-content { padding: 30px; }
.about-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
}
.about-links { list-style: none; }
.about-links li { margin-bottom: 12px; }
.link-item {
    color: #555;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.link-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #e31837;
    transition: left 0.3s ease;
}
.link-item:hover {
    color: #e31837;
    padding-left: 25px;
}
.link-item:hover::before { left: 5px; }

.features-section { background: #fff; }
.features-section .keys-swiper { padding: 20px 50px; }
.feature-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.feature-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.feature-card:hover .feature-image-wrapper img { transform: scale(1.15); }
.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover .feature-overlay { opacity: 1; }
.feature-content { padding: 25px; background: #fff; }
.feature-content h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    font-weight: 600;
}
.features-section .swiper-button-next,
.features-section .swiper-button-prev {
    color: #e31837;
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.features-section .swiper-button-next:after,
.features-section .swiper-button-prev:after { font-size: 20px; }

.footer-actions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
}
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.action-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.action-link {
    display: block;
    padding: 40px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.action-icon { margin-bottom: 20px; }
.action-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.action-title {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 600;
}

.hr-section { background: #f8f9fa; }
.hr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.hr-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.hr-image { height: 200px; overflow: hidden; }
.hr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hr-card:hover .hr-image img { transform: scale(1.1); }
.hr-content { padding: 30px; }
.hr-title {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}
.hr-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.hr-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #e31837, #ff4d6d);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hr-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.4);
}
.hr-color-1 .hr-button { background: linear-gradient(90deg, #e31837, #ff4d6d); }
.hr-color-2 .hr-button { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.hr-color-3 .hr-button { background: linear-gradient(90deg, #43e97b, #38f9d7); }
.hr-color-4 .hr-button { background: linear-gradient(90deg, #fa709a, #fee140); }
.hr-color-5 .hr-button { background: linear-gradient(90deg, #667eea, #764ba2); }
.hr-color-6 .hr-button { background: linear-gradient(90deg, #f093fb, #f5576c); }

.library-section { background: #fff; }
.book-item { padding: 15px; }
.book-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.book-link:hover { transform: scale(1.05); }
.book-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}
.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-content { text-align: center; }
.book-title {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-section,
    .features-section,
    .footer-actions,
    .hr-section,
    .library-section { padding: 50px 0; }
    .section-title { font-size: 2rem; }
    .about-grid,
    .hr-grid { grid-template-columns: 1fr; }
    .features-section .keys-swiper { padding: 20px 0; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
    .action-link { padding: 30px 20px; }
}
