/* 
Theme Name: JSParluhutan & Partners
Description: Professional law firm theme for JSParluhutan & Partners
Version: 1.0
Author: Your Name
*/

* {
    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: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Top Banner */

.top-banner {
    background: linear-gradient(90deg, #de3237 0%, #b33336 30%, #06699d 70%, #0192d2 100%);
    height: 8px;
}


/* Header Styles */

.header {
    background: white;
    padding: 25px 0;
    border-bottom: 1px solid #e8e9ea;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jsp-logo {
    width: 80px;
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 2px;
}

.company-tagline {
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-section {
    position: relative;
}

.search-box {
    padding: 10px 40px 10px 15px;
    border: 1px solid #d1d3d4;
    border-radius: 0;
    width: 200px;
    background: white;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.search-box::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
}

.flags {
    display: flex;
    gap: 3px;
}

.flag {
    width: 26px;
    height: 18px;
    border: 1px solid #ddd;
}

.flag-id {
    background: linear-gradient(to bottom, #ff0000 50%, #ffffff 50%);
}

.flag-uk {
    background: linear-gradient(135deg, #012169 25%, #ffffff 25%, #ffffff 50%, #c8102e 50%, #c8102e 75%, #ffffff 75%);
}


/* Navigation Styles */

.navigation {
    background: white;
    border-bottom: 1px solid #e8e9ea;
    padding: 0;
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Remove any button-related padding */
}

.mobile-menu-toggle {
    display: none;
    background: rgba(202, 202, 202, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
    /* Add spacing from other header elements */
}

.mobile-menu-toggle:hover {
    background: rgba(202, 202, 202, 0.8);
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    background: rgba(202, 202, 202, 0.8);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.nav-menu a:hover {
    color: #008ccc;
    background-color: #f8f9fa;
}


/* Main Content Area with Hero Banner */

.main-content {
    background: white;
    min-height: 60vh;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.practice-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-hero .hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-hero .news-badge {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.practice-hero .main-headline {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.practice-hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Content Styles */

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content .news-badge {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.hero-content .news-badge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: currentColor;
}

.hero-content .main-headline {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: Georgia, serif;
    color: inherit;
}

.hero-content .hero-intro {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}


/* Default styles for non-hero pages */

.main-content.default-page {
    background: white;
    min-height: 600px;
    padding: 40px 0;
    display: block;
    position: static;
}


/* Legacy news section styles (for other pages) */

.news-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.news-header {
    margin-bottom: 30px;
    position: relative;
    padding: 40px 30px 30px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(107, 140, 170, 0.08);
}

.news-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
}

.news-badge::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
}

.main-headline {
    font-size: 36px;
    font-weight: 300;
    color: #333;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.news-intro {
    font-size: 16px;
    color: #272727;
    line-height: 1.6;
    margin-bottom: 25px;
}

.refresh-btn {
    background: #008ccc;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #5a7a96;
    transform: translateY(-1px);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* News Feed Styles */

.news-feed {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.news-feed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #008ccc;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: #008ccc;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #008ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.news-list {
    max-height: 500px;
    overflow-y: auto;
}

.news-item {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    border-left-color: #008ccc;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-source {
    font-weight: 500;
    color: #008ccc;
}

.news-date {
    margin-left: auto;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: #856404;
}

.no-news {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}


/* Footer Styles */

.footer {
    background: white;
    padding: 15px 0 8px 0;
    border-top: 1px solid #e8e9ea;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 10px;
}

.footer-info h3 {
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: normal;
}

.footer-info .subtitle {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-info p {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    line-height: 1.3;
}

.contact-info {
    margin-top: 5px;
}

.social-section h4 {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    gap: 6px;
}

.social-link {
    width: 28px;
    height: 28px;
    background: #008ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 12px;
}

.social-link:hover {
    background: #5a7a96;
    transform: translateY(-1px);
}

.affiliations {
    text-align: right;
}

.affiliations h4 {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.lex-mundi {
    background: #2c5aa0;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    letter-spacing: 1px;
}

.lex-mundi .member {
    font-size: 10px;
    font-weight: normal;
    display: block;
    margin-top: 1px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e8e9ea;
    font-size: 10px;
    color: #999;
}

.footer-menu a {
    color: #666;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 20px;
}

.footer-menu a:hover {
    color: #008ccc;
}

.affiliation-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.affiliation-image {
    width: 100px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}


/* Responsive Design */

@media (max-width: 968px) {
    .news-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .main-headline {
        font-size: 28px;
    }
    .hero-content .main-headline {
        font-size: 36px;
    }
    .hero-content .hero-intro {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        position: relative;
        /* Ensure proper stacking context */
    }
    .header-right {
        position: relative;
        width: 100%;
        justify-content: center;
        display: flex;
        /* Add this line */
        align-items: center;
        /* Add this line */
    }
    .search-section,
    .flags {
        display: none;
    }
    .company-tagline {
        font-size: 9px;
        text-align: center;
    }
    .company-name {
        text-align: center;
    }
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    .nav-container {
        justify-content: center;
        padding: 0 20px;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-top: 1px solid #e8e9ea;
        max-height: 0;
        overflow: hidden;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 400px;
    }
    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu a {
        padding: 15px 20px;
        font-size: 12px;
        letter-spacing: 1px;
        border-left: 4px solid transparent;
        text-align: left;
    }
    .nav-menu a:hover {
        background-color: #f8f9fa;
        border-left-color: #008ccc;
        color: #008ccc;
    }
    .main-content.default-page {
        padding: 20px 0;
    }
    .main-content {
        min-height: 50vh;
    }
    .hero-content .main-headline {
        font-size: 28px;
    }
    .hero-content .hero-intro {
        font-size: 15px;
    }
    .hero-content .news-badge {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .news-feed {
        padding: 20px;
    }
    .main-headline {
        font-size: 24px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    .affiliations {
        text-align: center;
    }
    .affiliation-logo {
        justify-content: center;
    }
    .affiliation-image {
        width: 80px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .practice-hero {
        padding: 40px 20px !important;
        margin-bottom: 40px !important;
        min-height: 300px;
    }
    
    .practice-hero .main-headline {
        font-size: 2.5rem !important;
    }
    
    .practice-hero p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 8px;
        right: 10px;
        /* Adjust for smaller screens */
    }
    .hamburger-line {
        width: 16px;
        height: 2px;
    }
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
    }
    .header-content {
        gap: 10px;
    }
    .container {
        padding: 0 15px;
    }
    .header {
        padding: 20px 0;
    }
    .company-name {
        font-size: 14px;
    }
    .company-tagline {
        font-size: 8px;
    }
    .jsp-logo {
        width: 60px;
        height: 35px;
    }
    .nav-menu a {
        padding: 12px 15px;
        font-size: 11px;
    }
    .main-headline {
        font-size: 20px;
    }
    .main-content {
        min-height: 40vh;
    }
    .hero-content .main-headline {
        font-size: 24px;
    }
    .hero-content .hero-intro {
        font-size: 14px;
    }
    .affiliation-image {
        width: 60px;
    }
    .practice-hero {
        padding: 30px 15px !important;
        min-height: 250px;
    }
    
    .practice-hero .main-headline {
        font-size: 2rem !important;
    }
    
    .practice-hero .news-badge {
        font-size: 12px !important;
    }
}