:root {
    /* Primary colors (Blue gradient inspired) */
    --primary-light: #0F0638;
    --primary-dark: #398FCC;

    /* Accent / Secondary colors (Coral/Orange gradient) */
    --secondary-light: #398FCC;
    --secondary-dark: #398FCC;

    /* Backgrounds */
    --bg-light: #e8e9eb;
    /* Subtle off-white */
    --bg-dark: #121212;
    /* True dark mode */

    /* Text colors */
    --text-light: #1c1e21;
    /* Darker gray for legibility */
    --text-dark: #f1f3f5;
    /* Soft white */

    /* Cards / containers */
    --card-light: #ffffff;
    /* Pure white card background */
    --card-dark: #000000;
    /* Slightly raised dark card */

    /* Navigation bars */
    --nav-light: #ffffff;
    --nav-dark: #000000;

    /* Common utilities */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Softer, wider shadow */
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: var(--transition);
    line-height: 1.6;
}

body[data-theme="dark"] {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

h1 {
  margin-block: 0.67em;
  font-size: 2em;
}

/* Header Styles */
header {
    background-color: var(--nav-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    background: radial-gradient(circle at 20% 30%, #ffffff 0%, #e0f0ff 25%, #c0e4ff 50%, #a0d8ff 75%, #88ccff 100%);
}

body[data-theme="dark"] header {background: radial-gradient(circle at 20% 30%, #0e1a2b 0%, #152f49 30%, #1a4266 60%, #1e5278 100%);}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    text-decoration: none;
}

body[data-theme="dark"] .logo {
    color: var(--secondary-dark);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-light);
}

body[data-theme="dark"] nav ul li a:hover {
    color: var(--secondary-dark);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

body[data-theme="dark"] nav ul li a::after {
    background-color: var(--secondary-dark);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
    margin-left: 20px;
}

body[data-theme="dark"] .theme-toggle {
    color: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

body[data-theme="dark"] .mobile-menu-btn {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: white;
    margin-bottom: 2rem;
    border-radius: 20px;
    margin: 20px auto;
    padding: 10px;
    max-width: 1200px;
}

body[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 20px;
    margin: 20px auto;
    padding: 10px;
    max-width: 1200px;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    position: relative;
    padding-bottom: 0.5rem;
}

body[data-theme="dark"] .section-title {
    color: var(--secondary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-light);
}

body[data-theme="dark"] .section-title::after {
    background-color: var(--secondary-dark);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background-color: var(--card-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid #398FCC;
}

body[data-theme="dark"] .post-card {
    background-color: var(--card-dark);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-author {
	color: #03B588;
	font-weight: bold;
}

body[data-theme="dark"] .post-category {
    background-color: var(--secondary-dark);
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
}

body[data-theme="dark"] .post-title {
    color: var(--text-dark);
}

.post-excerpt {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

body[data-theme="dark"] .post-excerpt {
    color: var(--text-dark);
}

body[data-theme="dark"] .read-more {
    color: var(--secondary-dark);
}

.read-more:hover {
    color: var(--secondary-light);
}

body[data-theme="dark"] .read-more:hover {
    color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--nav-light);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

body[data-theme="dark"] footer {
    background-color: var(--nav-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    margin: 0 0.5rem;
    transition: var(--transition);
}

body[data-theme="dark"] .social-links a {
    background-color: var(--secondary-dark);
}

.social-links a:hover {
    background-color: var(--secondary-light);
    transform: translateY(-3px);
}

body[data-theme="dark"] .social-links a:hover {
    background-color: var(--primary-dark);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

body[data-theme="dark"] .copyright {
    color: var(--text-dark);
}

/* Single Post Styles */
.main-content.single-post {
    padding: 2rem 0 4rem;
}

.post {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--card-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid #398FCC;
}

body[data-theme="dark"] .post {
    background-color: var(--card-dark);
}

.post-featured-image {
    width: 50%;
    max-height: fit-content;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.post-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .post-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: white;
    font-weight: 900;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

body[data-theme="dark"] .post-category {
    background-color: var(--secondary-dark);
}

.post-title {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.3;
}

body[data-theme="dark"] .post-title {
    color: var(--text-dark);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 1rem;
}

body[data-theme="dark"] .post-meta {
    color: var(--text-dark);
}

.post-content {
    padding: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

body[data-theme="dark"] .post-content {
    color: var(--text-dark);
}

/* Post Content Typography */
.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--primary-light);
    line-height: 1.4;
}

body[data-theme="dark"] .post-content h2,
body[data-theme="dark"] .post-content h3,
body[data-theme="dark"] .post-content h4 {
    color: var(--secondary-dark);
}

.post-content h2 {
    font-size: 1.2rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.read-more {
    display: inline-block !important;
    color: var(--primary-light);
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    font-size: 1.0rem !important;
}

.post-content p {
    margin-bottom: 1.5rem;
}

body[data-theme="dark"] .post-content a {
    color: var(--secondary-dark);
}

.post-content a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

body[data-theme="dark"] .post-content a:hover {
    color: var(--primary-dark);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    margin: 0 auto;
    display: flex;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.9;
}

body[data-theme="dark"] .post-content blockquote {
    border-left-color: var(--secondary-dark);
    color: var(--text-dark);
}

.post-content pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: monospace;
}

body[data-theme="dark"] .post-content pre {
    background-color: rgba(255, 255, 255, 0.05);
}

.post-content code {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

body[data-theme="dark"] .post-content code {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Search Bar Styles */
.search-container {
    flex-grow: 1;
    margin: 0 20px;
    max-width: 300px;
}

.search-container form {
    display: flex;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid var(--primary-light);
    border-radius: 20px 0 0 20px;
    width: 100%;
    font-size: 14px;
    background-color: var(--card-light);
    color: var(--text-light);
    transition: var(--transition);
}

.search-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    font-weight: 900;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Dark mode styles */
[data-theme="dark"] .search-input {
    border-color: var(--primary-dark);
    background-color: var(--card-dark);
    color: var(--text-dark);
}

[data-theme="dark"] .search-btn {
    background: var(--primary-dark);
}

[data-theme="dark"] .search-btn:hover {
    background: var(--secondary-dark);
}

/* Mobile Menu */
#mainNav {
    transition: var(--transition);
}

#mainNav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

#mainNav li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    min-width: 100%;
    display: flex;
    font-weight: 800;
}

#mainNav li a:hover {
    color: var(--primary-light);
}

/* Dark mode mobile menu styles */
[data-theme="dark"] #mainNav {
}

[data-theme="dark"] #mainNav li a {
    color: var(--text-dark);
}

[data-theme="dark"] #mainNav li a:hover {
    color: var(--primary-dark);
}

/* Footer Links Styling */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

body[data-theme="dark"] .legal-links a {
    color: var(--text-dark);
}

.legal-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

body[data-theme="dark"] .legal-links a:hover {
    color: var(--secondary-dark);
}

/* Comments Section */
.comments-section {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .comments-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.comments-section h2 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

body[data-theme="dark"] .comments-section h2 {
    color: var(--secondary-dark);
}

.comments-list {
    margin-bottom: 3rem;
}

.comment {
    background-color: var(--card-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .comment {
    background-color: var(--card-dark);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

body[data-theme="dark"] .comment-meta {
    color: var(--text-dark);
}

.comment-author {
    font-weight: 600;
}

.comment-content {
    line-height: 1.6;
    color: var(--text-light);
}

body[data-theme="dark"] .comment-content {
    color: var(--text-dark);
}

.no-comments {
    color: var(--text-light);
    opacity: 0.7;
    font-style: italic;
    margin-bottom: 3rem;
}

body[data-theme="dark"] .no-comments {
    color: var(--text-dark);
}

.comment-form {
    background-color: var(--card-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .comment-form {
    background-color: var(--card-dark);
}

.comment-form h3 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

body[data-theme="dark"] .comment-form h3 {
    color: var(--secondary-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

body[data-theme="dark"] .form-group label {
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-light);
}

body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group textarea {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    border-color: #444;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.comment-alert.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.comment-alert.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

body[data-theme="dark"] .comment-alert.error {
    background-color: #3d1a1a;
    color: #ff8a80;
    border-color: #5d2a2a;
}

body[data-theme="dark"] .comment-alert.success {
    background-color: #1a3a1a;
    color: #a5d6a7;
    border-color: #2d5d2d;
}

.btn {
    background-color: #007BFF;       /* Bootstrap Blue */
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn:disabled,
.btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Dark theme override */
[data-theme="dark"] .btn {
    background-color: #1E90FF;
    color: #fff;
}

[data-theme="dark"] .btn:hover {
    background-color: #1c6cd6;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.4);
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

body[data-theme="dark"] .about-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-mission {
    padding: 4rem 0;
}

.about-mission .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.mission-content {
    flex: 1;
}

.mission-content h2 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

body[data-theme="dark"] .mission-content h2 {
    color: var(--secondary-dark);
}

.mission-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mission-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    background: var(--card-light);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .stat-item {
    background: var(--card-dark);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
    line-height: 1;
}

body[data-theme="dark"] .stat-number {
    color: var(--secondary-dark);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

body[data-theme="dark"] .stat-label {
    color: var(--text-dark);
}

.about-story {
    padding: 4rem 0;
    background-color: var(--bg-light-2);
}

body[data-theme="dark"] .about-story {
    background-color: var(--bg-dark-2);
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding-left: 2rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

body[data-theme="dark"] .story-timeline::before {
    background: var(--secondary-dark);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .timeline-year {
    background: var(--secondary-dark);
}

.timeline-content {
    background: var(--card-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .timeline-content {
    background: var(--card-dark);
}

.timeline-content h3 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

body[data-theme="dark"] .timeline-content h3 {
    color: var(--secondary-dark);
}

.team-section {
    padding: 4rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--card-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

body[data-theme="dark"] .team-member {
    background: var(--card-dark);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
}

body[data-theme="dark"] .team-member img {
    border-color: var(--secondary-dark);
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member .position {
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

body[data-theme="dark"] .team-member .position {
    color: var(--secondary-dark);
}

.team-member .bio {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

body[data-theme="dark"] .team-member .bio {
    color: var(--text-dark);
}

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: white;
    text-align: center;
}

body[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.subscribe-form .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0 4px 4px 0;
    background: var(--bg-dark);
    color: white;
}

body[data-theme="dark"] .subscribe-form .btn {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

body[data-theme="dark"] .contact-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    background: var(--card-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .contact-info {
    background: var(--card-dark);
}

.contact-info h2 {
    color: var(--primary-light);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

body[data-theme="dark"] .contact-info h2 {
    color: var(--secondary-dark);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 0.3rem;
}

body[data-theme="dark"] .info-item i {
    color: var(--secondary-dark);
}

.info-item h3 {
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

body[data-theme="dark"] .info-item h3 {
    color: var(--text-dark);
}

.info-item p, .info-item a {
    color: var(--text-light);
    opacity: 0.8;
}

body[data-theme="dark"] .info-item p,
body[data-theme="dark"] .info-item a {
    color: var(--text-dark);
}

.info-item a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

body[data-theme="dark"] .info-item a:hover {
    color: var(--secondary-dark);
}

.social-links {
    margin-top: 3rem;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

body[data-theme="dark"] .social-links h3 {
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    transition: var(--transition);
}

body[data-theme="dark"] .social-icons a {
    background: var(--secondary-dark);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icons .coming-soon {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.social-icons .coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-light);
    color: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

body[data-theme="dark"] .social-icons .coming-soon::after {
    background: var(--text-dark);
    color: var(--bg-dark);
}

.social-icons .coming-soon:hover::after {
    opacity: 1;
}

.contact-form-container {
    background: var(--card-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .contact-form-container {
    background: var(--card-dark);
}

.form-error, .form-success {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.form-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

body[data-theme="dark"] .form-error {
    background-color: #3d1a1a;
    color: #ff8a80;
    border-color: #5d2a2a;
}

body[data-theme="dark"] .form-success {
    background-color: #1a3a1a;
    color: #a5d6a7;
    border-color: #2d5d2d;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

body[data-theme="dark"] .form-group label {
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-light);
}

body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group textarea {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    border-color: #444;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-light);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

body[data-theme="dark"] .submit-btn {
    background-color: var(--secondary-dark);
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .submit-btn:hover {
    background-color: var(--primary-dark);
}

.map-section {
    padding: 0 0 4rem;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

body[data-theme="dark"] .map-section h2 {
    color: var(--secondary-dark);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* YouTube Tools Styles */
.youtube-tools .container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

body[data-theme="dark"] .youtube-tools .container {
    background: var(--card-dark);
}

.youtube-tools h1 {
    color: var(--primary-light);
    text-align: center;
    margin-bottom: 0.5rem;
}

body[data-theme="dark"] .youtube-tools h1 {
    color: var(--secondary-dark);
}

.youtube-tools .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

body[data-theme="dark"] .youtube-tools .subtitle {
    color: var(--text-dark);
}

.tool-container {
    margin-bottom: 3rem;
}

.tool-container input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-light);
}

body[data-theme="dark"] .tool-container input {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    border-color: #444;
}

#thumbnailResult {
    margin-top: 2rem;
}

.result-container {
    background: var(--bg-light-2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

body[data-theme="dark"] .result-container {
    background: var(--bg-dark-2);
}

.thumbnail {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #ddd;
}

.download-options {
    margin-top: 1.5rem;
}

.quality-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.stats-container {
    margin-top: 2rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

body[data-theme="dark"] .loading {
    color: var(--text-dark);
}

.error-message {
    color: #e74c3c;
    padding: 1rem;
    background: #ffebee;
    border-radius: 4px;
}

body[data-theme="dark"] .error-message {
    background: #3d1a1a;
}

.channel-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.channel-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-info h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

body[data-theme="dark"] .channel-info h2 {
    color: var(--secondary-dark);
}

.channel-description {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
}

body[data-theme="dark"] .channel-description {
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background: var(--bg-light-2);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

body[data-theme="dark"] .stat-box {
    background: var(--bg-dark-2);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

body[data-theme="dark"] .stat-value {
    color: var(--secondary-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

body[data-theme="dark"] .stat-label {
    color: var(--text-dark);
}

.channel-link {
    text-align: center;
    margin-top: 2rem;
}

.instructions {
    background: var(--bg-light-2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

body[data-theme="dark"] .instructions {
    background: var(--bg-dark-2);
}

.instructions h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

body[data-theme="dark"] .instructions h3 {
    color: var(--secondary-dark);
}

.instructions ol {
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

body[data-theme="dark"] .instructions li {
    color: var(--text-dark);
}

/* Base Styles */
.tools-page {
  padding: 2.5rem 0;
  background-color: var(--bg-secondary);
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.875rem;
  margin-top: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}

/* Tool Card Styles */
.tool-card {
  display: block;
  background: var(--card-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .tool-card {
  background: var(--card-dark);
  border-color: rgba(255, 255, 255, 0.05);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tool-card:hover::before {
  opacity: 1;
}

/* Icon Styles */
.tool-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

[data-theme="dark"] .tool-icon {
  color: var(--primary-dark);
}

[data-theme="dark"] .tool-card:hover .tool-icon {
  color: var(--primary-dark);
}

/* Text Styles */
.tool-card h3 {
  margin: 0.625rem 0;
  color: var(--primary-light);
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

[data-theme="dark"] .tool-card h3 {
  color: var(--text-dark);
}

.tool-card p {
  color: var(--secondary-dark);
  margin: 0;
  line-height: 1.6;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
  font-weight: bold;
}

[data-theme="dark"] .tool-card p {
  color: var(--text-dark);
}

.post-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 100%;
}

.post-title-link:active {
    opacity: 0.8;
}

/* Table Styles with Dark Mode Support */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: var(--primary-light);
    color: white;
    text-align: left;
    font-weight: 600;
    padding: 1rem;
}

body[data-theme="dark"] th {
    background-color: var(--secondary-dark);
}

td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--card-light);
    color: var(--text-light);
}

body[data-theme="dark"] td {
    background-color: var(--card-dark);
    color: var(--text-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover td {
    background-color: var(--bg-light-2);
}

body[data-theme="dark"] tr:hover td {
    background-color: var(--bg-dark-2);
}

/* Zebra Striping */
tr:nth-child(even) td {
    background-color: var(--bg-light-2);
}

body[data-theme="dark"] tr:nth-child(even) td {
    background-color: var(--bg-dark-2);
}

/* Table Borders */
table {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] table {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        min-width: 120px;
    }
}

/* Special Table Elements */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.table-caption {
    caption-side: bottom;
    text-align: right;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

body[data-theme="dark"] .table-caption {
    color: var(--text-dark);
}

/* Table Variations */
.table-bordered {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .table-bordered {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-striped tr:nth-child(even) td {
    background-color: var(--bg-light-2);
}

body[data-theme="dark"] .table-striped tr:nth-child(even) td {
    background-color: var(--bg-dark-2);
}

.table-hover tr:hover td {
    background-color: var(--bg-light-2);
}

body[data-theme="dark"] .table-hover tr:hover td {
    background-color: var(--bg-dark-2);
}

/* Cell Alignment */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Compact Tables */
.table-sm th, 
.table-sm td {
    padding: 0.5rem 0.75rem;
}

/* Table Header Sizes */
.table-lg th {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
}

.loop {
	color: #0E0537; /* Dark blue for light mode */
}

.guy {
	color: #00D1FF; /* Orange/red for light mode */
}

  body[data-theme="dark"] .loop {
      color: white; /* Light for dark mode */
  }

   body[data-theme="dark"].guy {
      color: #00D1FF; /* Light blue for dark mode */
  }

.featured_image {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Responsive */
@media (max-width: 768px) {
    .channel-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-options {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero .subtitle {
        font-size: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 3rem 0;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-mission .container {
        flex-direction: column;
    }
    
    .mission-stats {
        flex-direction: column;
    }
    
    .story-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-year {
        left: -2.75rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input,
    .subscribe-form .btn {
        width: 100%;
        border-radius: 4px;
    }
    
    .subscribe-form .btn {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-hero .subtitle {
        font-size: 1rem;
    }
    
    .mission-content h2,
    .team-section h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .comment-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .comment-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .comment-form {
        padding: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-links {
        gap: 1rem;
    }
    
    .legal-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .search-container {
        order: 3;
        width: 100%;
        margin: 10px 0;
        max-width: none;
    }

    .header-container {
        flex-wrap: wrap;
    }

    #mainNav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background-color: var(--nav-light);
        box-shadow: var(--shadow);
        z-index: 1000;
        overflow-y: auto;
    }

    [data-theme="dark"] #mainNav {
        background-color: var(--nav-dark);
    }

    #mainNav.active {
        left: 0;
    }

    #mainNav ul {
        flex-direction: column;
        padding: 20px;
    }

    #mainNav li {
        margin: 10px 0;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] #mainNav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    .post-header,
    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {

    .post-header,
    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.4rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        margin: 20px auto;
        margin-left: 20px;
        margin-right: 20px;
        padding: 10px;
        max-width: 100%;
    }

    body[data-theme="dark"] .hero {
        margin: 20px auto;
        margin-left: 20px;
        margin-right: 20px;
        padding: 10px;
        max-width: 100%;
    }

    .header-container {
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--nav-light);
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 99;
    }

    body[data-theme="dark"] nav {
        background-color: var(--nav-dark);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 2rem;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}