* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #f8f9ff;
    color: #333;
    line-height: 1.7;
    max-width: 100vw;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #7c5dff;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #5a3fd9;
    text-decoration: underline;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }
.bg-white { background-color: #fff; }
.rounded { border-radius: 10px; }
.shadow { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.highlight {
    background: linear-gradient(120deg, #e1f5fe 0%, #f3e5f5 100%);
    padding: 2rem;
    border-left: 5px solid #7c5dff;
    margin: 2rem 0;
}
.site-header {
    background: linear-gradient(135deg, #2d1b69 0%, #7c5dff 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.my-logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.my-logo:hover {
    text-decoration: none;
    color: #ffeb3b;
}
.my-logo i {
    margin-right: 10px;
}
.main-nav ul {
    display: flex;
    list-style: none;
}
.main-nav li {
    margin-left: 2rem;
}
.main-nav a {
    color: white;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}
.main-nav a:hover {
    text-decoration: none;
    color: #ffeb3b;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #ffeb3b;
    transition: width 0.3s;
}
.main-nav a:hover::after {
    width: 100%;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}
.breadcrumb {
    padding: 1rem 0;
    background-color: #f0f2ff;
    font-size: 0.9rem;
}
.breadcrumb ul {
    display: flex;
    list-style: none;
}
.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 10px;
    color: #7c5dff;
}
.hero {
    background: linear-gradient(rgba(45,27,105,0.85), rgba(124,93,255,0.8)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 2rem 0;
}
article {
    grid-column: 1;
}
article h2 {
    color: #2d1b69;
    font-size: 2.5rem;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e1f5fe;
}
article h3 {
    color: #5a3fd9;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}
article h4 {
    color: #7c5dff;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}
article p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    text-align: justify;
}
article ul, article ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}
article li {
    margin-bottom: 0.5rem;
}
article strong {
    color: #2d1b69;
    font-weight: 700;
}
article em {
    color: #5a3fd9;
    font-style: italic;
}
.sidebar {
    grid-column: 2;
}
.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}
.widget h3 {
    color: #2d1b69;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.search-form, .comment-form, .rating-form {
    display: flex;
    flex-direction: column;
}
.search-form input, .comment-form input, .comment-form textarea, .rating-form select {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.search-form button, .comment-form button, .rating-form button {
    background: #7c5dff;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.search-form button:hover, .comment-form button:hover, .rating-form button:hover {
    background: #5a3fd9;
}
.stars {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #ffd700;
    cursor: pointer;
}
.featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem 0;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.links-list {
    background: #f0f2ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}
.links-list h3 {
    color: #2d1b69;
    margin-bottom: 1rem;
}
.links-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.links-list li {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
}
.links-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(124,93,255,0.2);
}
.site-footer {
    background: #1a0b3d;
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 0.8rem;
}
.footer-section a {
    color: #aaa;
}
.footer-section a:hover {
    color: #7c5dff;
}
friend-link {
    display: block;
    background: #2d1b69;
    color: white;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: -1;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2d1b69;
        padding: 1rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }
    .main-nav.active ul {
        display: flex;
    }
    .main-nav li {
        margin: 0.5rem 0;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    article h2 {
        font-size: 2rem;
    }
}
