:root {
    --primary-color: #002D56; /* Deep Navy */
    --secondary-color: #0056b3; /* Lighter Blue */
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --kakao-yellow: #FEE500;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px; /* Adjusted padding as requested */
}

/* Hero Section */
.hero-section {
    height: 600px;
    background-color: #1a1a1a;
    background: linear-gradient(rgba(0,45,86,0.7), rgba(0,45,86,0.7)), url('https://via.placeholder.com/1920x800?text=Hero+Image'); 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-content h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #aecdf7;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 15px;
}

.slider-nav span {
    color: white;
    font-size: 1.2rem;
    opacity: 0.5;
    cursor: pointer;
}

.slider-nav span.active {
    opacity: 1;
    font-weight: bold;
    border-bottom: 2px solid white;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.stats-section .container {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item strong span {
    font-size: 1.2rem;
    color: #444;
    font-weight: normal;
}

.stat-item p {
    font-size: 1rem;
    color: #333;
    font-weight: 400;
}

/* Professionals Section */
.professionals-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.view-all {
    color: #666;
    font-size: 0.9rem;
}

.prof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prof-card {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.prof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.prof-img {
    width: 100%;
    height: 250px;
    background-color: #ddd;
    margin-bottom: 15px;
}

.prof-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.prof-card p {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Practice Areas */
.practice-section {
    padding: 80px 0;
    background-color: #fff;
}

.practice-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border-color); /* For borders between items */
    border: 1px solid var(--border-color);
}

.practice-item {
    background-color: white;
    padding: 40px;
    text-align: center;
}

.practice-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.practice-item p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

/* One Stop Section */
.onestop-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.onestop-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.onestop-section p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Subpage Layout Styles */
.sub-header {
    background-color: #f4f4f4;
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}

.sub-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.content-container {
    display: flex;
    gap: 50px; /* Reduced gap slightly */
    margin-bottom: 80px;
    min-height: 500px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar h2 {
    font-size: 1.2rem;
    color: white;
    background-color: var(--primary-color);
    padding: 15px;
    margin-bottom: 0;
}

.sidebar ul {
    border: 1px solid #ddd;
    border-top: none;
}

.sidebar li {
    border-bottom: 1px solid #eee;
}

.sidebar li a {
    display: block;
    padding: 15px;
    color: #555;
    transition: background 0.3s;
}

.sidebar li a:hover,
.sidebar li.active a {
    background-color: #f9f9f9;
    color: var(--primary-color);
    font-weight: bold;
    border-left: 4px solid var(--primary-color);
}

.content {
    flex-grow: 1;
}

.content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.page-content {
    font-size: 1rem;
    color: #444;
}

/* Floating Kakao Button */
#kakao-talk-channel-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

#kakao-talk-channel-chat-button:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-section .container, 
    .prof-grid, 
    .practice-grid,
    .content-container {
        display: flex;
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 20px;
    }

    #kakao-talk-channel-chat-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
    }
}
