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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover, .nav-link.active {
    background: #667eea;
    color: white;
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0 40px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.hero-section h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-section p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.hero-btn:hover {
    transform: scale(1.05);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-card p {
    color: #666;
    margin-bottom: 15px;
}

.feature-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Recent News Section */
.recent-news-section {
    margin: 40px 0;
}

.recent-news-section h2 {
    color: white;
    margin-bottom: 20px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.news-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.news-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.news-card p {
    color: #666;
    margin-bottom: 10px;
}

.news-card .meta {
    color: #999;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card .read-more {
    color: #667eea;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.tool-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tool-card h3 {
    color: #667eea;
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

button.tool-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: transform 0.2s;
}

button.tool-btn:hover {
    transform: scale(1.05);
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    font-weight: 600;
    color: #667eea;
    word-break: break-all;
}

/* Article Detail */
.article-detail {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.article-detail h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2em;
}

.article-detail .article-meta {
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.article-detail .article-content {
    color: #333;
    font-size: 1.1em;
    line-height: 1.8;
}

.article-detail .article-content p {
    margin-bottom: 20px;
}

.back-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: #764ba2;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 12px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 20px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-section h2 {
        font-size: 2em;
    }



}


/* for search  */

@media (max-width: 480px) {
  .tutorial-search {
    max-width: 100%;
  }
}

/* Container */
.tutorial-search {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 20px auto;
  max-width: 300px; /* SMALL WIDTH */
}

/* Glass effect */
.glass-search {
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Input */
.glass-search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 6px;
}

/* Placeholder */
.glass-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Results */
#searchResults {
  width: 100%;
  list-style: none;
  margin-top: 10px;
  padding: 0;
}

/* Result items */
#searchResults li {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

/* Hover effect */
#searchResults li:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Links */
#searchResults a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
