/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    transition: background 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.bg-dark {
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Courier New', monospace, sans-serif;
    line-height: 1.6;
}

body.bg-light {
    background: #f0ece3;
    color: #2a2a2a;
    font-family: 'Courier New', monospace, sans-serif;
    line-height: 1.6;
}

/* Light Theme Adjustments */
body.bg-light .neon-text {
    color: #0097cc;
    text-shadow: 0 0 5px #0097cc, 0 0 10px #0097cc, 0 0 20px #0097cc;
}

body.bg-light .navbar {
    background: #f9f7f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.bg-light .navbar nav a {
    color: #0097cc;
}

body.bg-light .navbar nav a:hover, body.bg-light .navbar nav a.active {
    background: #0097cc;
    color: #f9f7f2;
}

body.bg-light .intro-tagline {
    color: #e57373;
}

body.bg-light .card-body {
    background: #f9f7f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.bg-light .card-title {
    color: #0097cc;
}

body.bg-light .card-text {
    color: #555;
}

body.bg-light .attachments, body.bg-light .comments-section, body.bg-light .admin-card {
    background: #f9f7f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.bg-light .comment {
    border-bottom: 1px solid #0097cc;
    background: #e9ecef;
}

body.bg-light .comment strong {
    color: #0097cc;
}

body.bg-light .form-control {
    background: #fff;
    border: 1px solid #0097cc;
    color: #2a2a2a;
}

body.bg-light .form-control:focus {
    box-shadow: 0 0 5px #0097cc;
}

body.bg-light .admin-sidebar {
    background: #f9f7f2;
    border-right: 2px solid #0097cc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

body.bg-light .admin-sidebar a {
    color: #2a2a2a;
}

body.bg-light .admin-sidebar a .icon {
    color: #0097cc;
}

body.bg-light .admin-sidebar a:hover {
    background: linear-gradient(45deg, #0097cc, #e57373);
    color: #f9f7f2;
}

body.bg-light .admin-sidebar a.active {
    background: #0097cc;
    color: #f9f7f2;
    border-left: 4px solid #e57373;
}

body.bg-light footer {
    background: #f9f7f2;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.content-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Neon Text Effect */
.neon-text {
    color: #0ff;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff;
}

/* Gradient Button (Primary) */
.btn-gradient {
    background: linear-gradient(45deg, #f72585, #7209b7);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px #f72585;
}

/* Gradient Button (Danger) */
.btn-gradient-danger {
    background: linear-gradient(45deg, #ff0000, #b70909);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gradient-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px #ff0000;
}

/* Outline Button (Secondary) */
.btn-outline-secondary {
    background: none;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    display: block;
    margin: 0 auto;
}

body.bg-light .btn-outline-secondary {
    border: 1px solid #0097cc;
    color: #0097cc;
}

.btn-outline-secondary:hover {
    background: #0ff;
    color: #111;
}

body.bg-light .btn-outline-secondary:hover {
    background: #0097cc;
    color: #fff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.theme-icon {
    font-size: 1.2rem;
}

/* Audio Toggle Button */
.audio-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.audio-icon {
    font-size: 1.2rem;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-input {
    background: #333;
    border: 1px solid #0ff;
    color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

body.bg-light .search-input {
    background: #f9f7f2;
    border: 1px solid #0097cc;
    color: #2a2a2a;
}

.search-btn {
    background: #0ff;
    border: none;
    padding: 5px 10px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

body.bg-light .search-btn {
    background: #0097cc;
}

.search-btn:hover {
    background: #00aaff;
}

body.bg-light .search-btn:hover {
    background: #0088cc;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-info {
    font-size: 0.9rem;
    color: #bbb;
}

body.bg-light .page-info {
    color: #555;
}

/* Success and Error Messages */
.text-success {
    color: #0f0;
    margin-bottom: 15px;
}

body.bg-light .text-success {
    color: #28a745;
}

.text-danger {
    color: #f00;
    margin-bottom: 15px;
}

body.bg-light .text-danger {
    color: #dc3545;
}

/* Muted Text */
.text-muted {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}

body.bg-light .text-muted {
    color: #666;
}

.text-muted a {
    color: #f72585;
    text-decoration: none;
}

body.bg-light .text-muted a {
    color: #e57373;
}

.text-muted a:hover {
    text-decoration: underline;
}

/* Navbar (Frontend) */
.navbar {
    background: #222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.nav-toggle-label span {
    background: #0ff;
    height: 3px;
    width: 100%;
    border-radius: 2px;
}

body.bg-light .nav-toggle-label span {
    background: #0097cc;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a {
    color: #0ff;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.navbar nav a:hover, .navbar nav a.active {
    background: #0ff;
    color: #111;
}

/* Back-to-Top Button */
.back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0ff;
    color: #111;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 10px #0ff;
    transition: background 0.3s, transform 0.3s;
    z-index: 500;
}

body.bg-light .back-to-top-btn {
    background: #0097cc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.back-to-top-btn:hover {
    background: #00aaff;
    transform: scale(1.1);
}

body.bg-light .back-to-top-btn:hover {
    background: #0088cc;
}

/* Intro Section */
.intro {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.intro-title {
    font-size: clamp(1.5rem, 5vw, 3rem); /* Scales between 1.5rem and 3rem based on viewport width */
    line-height: 1.2; /* Prevents awkward wrapping */
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards, pulse 2s infinite;
}

.intro-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem); /* Scales between 1rem and 1.5rem */
    color: #f72585;
    margin: 20px 0;
    opacity: 0;
    white-space: normal; /* Allow wrapping on smaller screens */
    overflow: hidden;
    animation: fadeIn 1.5s ease-in 0.5s forwards, typewriter 3s steps(30, end) 0.5s forwards;
}

.intro-cta {
    font-size: 1.2rem;
    padding: 15px 30px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in 1s forwards;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 10s infinite linear;
}

.code-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.airplane-icon {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.circuit-icon {
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.code-icon:nth-child(4) {
    top: 50%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes float {
    0% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(50px, 50px); opacity: 0.3; }
    100% { transform: translate(0, 0); opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff; }
    50% { text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff; }
    100% { text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff; }
}

@keyframes pulse-light {
    0% { text-shadow: 0 0 5px #0097cc, 0 0 10px #0097cc, 0 0 20px #0097cc; }
    50% { text-shadow: 0 0 10px #0097cc, 0 0 20px #0097cc, 0 0 30px #0097cc; }
    100% { text-shadow: 0 0 5px #0097cc, 0 0 10px #0097cc, 0 0 20px #0097cc; }
}

body.bg-light .intro-title {
    animation: fadeIn 1.5s ease-in forwards, pulse-light 2s infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Posts Section */
.posts {
    padding: 20px 0;
    text-align: center; /* Center-align the posts section */
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* Center the cards within the row */
}

.col-md-4 {
    flex: 1 1 30%;
    max-width: 30%;
    box-sizing: border-box;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    width: 100%; /* Ensure cards take full width of their container */
}

.project-card:hover {
    transform: scale(1.05);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-title {
    color: #0ff;
    font-size: 1.25rem;
}

.card-text {
    color: #bbb;
    font-size: 0.9rem;
    /* Ensure rendered HTML fits within the card */
    overflow: hidden;
    max-height: 60px; /* Limit height to 3 lines */
    line-height: 1.2rem;
    /* Adjust font sizes for rendered HTML */
}

.card-text h1, .card-text h2, .card-text h3, .card-text h4, .card-text h5, .card-text h6 {
    font-size: 1rem;
    margin: 5px 0;
}

.card-text p {
    margin: 5px 0;
}

.card-text ul {
    padding-left: 15px;
    margin: 5px 0;
}

.card-text li {
    margin: 2px 0;
}

.card-text img {
    display: none; /* Hide images in preview to avoid layout issues */
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

body.bg-light .post-meta {
    color: #555;
}

/* Like Button */
.like-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

body.bg-light .like-btn {
    color: #555;
}

.like-btn.liked, .like-btn:disabled {
    color: #f72585;
    cursor: not-allowed;
}

body.bg-light .like-btn.liked, body.bg-light .like-btn:disabled {
    color: #e57373;
}

.like-btn:hover:not(:disabled) {
    color: #f72585;
}

body.bg-light .like-btn:hover:not(:disabled) {
    color: #e57373;
}

.like-count {
    font-size: 0.85rem;
}

/* Content Area (for post.php) */
.content {
    width: 100%; /* Span the full width of the parent (.content-wrapper) */
    padding: 30px 15px;
    background: #222;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

body.bg-light .content {
    background: #f9f7f2;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.content h1.neon-text {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Inner wrapper for post content to constrain text width */
.post-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Post Content */
.post-content {
    margin: 20px 0;
    font-size: 1rem;
    color: #e0e0e0;
}

body.bg-light .post-content {
    color: #2a2a2a;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    color: #0ff;
    margin: 20px 0 10px;
    text-align: center;
}

body.bg-light .post-content h1, 
body.bg-light .post-content h2, 
body.bg-light .post-content h3, 
body.bg-light .post-content h4, 
body.bg-light .post-content h5, 
body.bg-light .post-content h6 {
    color: #0097cc;
}

.post-content p {
    margin: 15px 0;
    text-align: left;
}

.post-content ul, .post-content ol {
    margin: 15px auto;
    padding-left: 40px;
    list-style-position: outside;
    max-width: 600px;
}

.post-content ul li, .post-content ol li {
    margin: 5px 0;
    padding-left: 10px;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 5px;
}

/* Share Buttons */
.share-buttons {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-btn {
    background: #0ff;
    color: #111;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

body.bg-light .share-btn {
    background: #0097cc;
}

.share-btn:hover {
    background: #00aaff;
}

body.bg-light .share-btn:hover {
    background: #0088cc;
}

/* Attachments Section */
.attachments {
    margin: 30px 0;
    padding: 20px;
    background: #333;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

body.bg-light .attachments {
    background: #f9f7f2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.attachments h3 {
    color: #0ff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

body.bg-light .attachments h3 {
    color: #0097cc;
}

.attachments ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.attachments ul li {
    margin: 10px 0;
}

.attachments ul li a {
    color: #f72585;
    text-decoration: none;
    font-size: 0.9rem;
}

body.bg-light .attachments ul li a {
    color: #e57373;
}

.attachments ul li a:hover {
    text-decoration: underline;
}

/* Comments Section */
.comments-section {
    margin: 40px auto;
    padding: 25px;
    background: #333;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

body.bg-light .comments-section {
    background: #f9f7f2;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.comments-section h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
    text-align: center;
}

body.bg-light .comments-section h3 {
    color: #0097cc;
    text-shadow: 0 0 5px #0097cc;
}

.comment-form {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-form .captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    color: #bbb;
}

body.bg-light .comment-form label {
    color: #555;
}

.comment-form .form-control {
    background: #444;
    border: 1px solid #0ff;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: box-shadow 0.3s, border-color 0.3s;
}

body.bg-light .comment-form .form-control {
    background: #fff;
    border: 1px solid #0097cc;
    color: #2a2a2a;
}

.comment-form .form-control:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 5px #0ff;
}

body.bg-light .comment-form .form-control:focus {
    border-color: #0088cc;
    box-shadow: 0 0 5px #0097cc;
}

.comment-form input[type="number"] {
    width: 80px;
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form button {
    align-self: flex-start;
}

.comments-list {
    margin-top: 30px;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid #0ff;
    margin-bottom: 15px;
    background: #2a2a2a;
    border-radius: 5px;
}

body.bg-light .comment {
    border-bottom: 1px solid #0097cc;
    background: #e9ecef;
}

.comment.replied {
    margin-left: 30px;
    border-left: 2px solid #f72585;
    padding-left: 15px;
}

body.bg-light .comment.replied {
    border-left: 2px solid #e57373;
}

.comment p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.comment strong {
    color: #0ff;
}

body.bg-light .comment strong {
    color: #0097cc;
}

.reply-btn {
    background: none;
    border: none;
    color: #f72585;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 10px;
}

body.bg-light .reply-btn {
    color: #e57373;
}

.reply-btn:hover {
    text-decoration: underline;
}

.reply-form {
    margin-top: 15px;
    margin-left: 30px;
    display: none;
}

.reply-form.active {
    display: block;
}

/* Form Controls */
.form-control {
    background: #333;
    border: 1px solid #0ff;
    color: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: box-shadow 0.3s;
}

body.bg-light .form-control {
    background: #fff;
    border: 1px solid #0097cc;
    color: #2a2a2a;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 5px #0ff;
}

/* Admin Panel Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #222;
    padding: 20px;
    border-right: 2px solid #0ff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background 0.3s, color 0.3s;
}

.admin-sidebar a .icon {
    font-size: 1.2rem;
    color: #0ff;
}

.admin-sidebar a:hover {
    background: linear-gradient(45deg, #f72585, #7209b7);
    color: #fff;
}

.admin-sidebar a.active {
    background: #0ff;
    color: #111;
    border-left: 4px solid #f72585;
}

.admin-content {
    flex: 1;
    padding: 20px;
}

.admin-card {
    background: #222;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.list-group {
    list-style: none;
    padding: 0;
}

.list-group-item {
    background: #333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e0e0;
}

body.bg-light .list-group-item {
    background: #f9f7f2;
    color: #2a2a2a;
}

/* Footer */
footer {
    background: #222;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    width: 100%;
    flex-shrink: 0;
    z-index: 400;
}

footer p {
    font-size: 0.85rem;
    color: #888;
}

body.bg-light footer p {
    color: #555;
}

/* Ensure content takes up remaining space */
main {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-md-4 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-toggle-label {
        display: flex;
    }

    .navbar nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .navbar nav a, .navbar nav .search-form, .navbar nav .theme-toggle-btn, .navbar nav .audio-toggle-btn {
        margin: 5px 0;
    }

    .nav-toggle:checked ~ nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 2px solid #0ff;
        box-shadow: none;
    }

    body.bg-light .admin-sidebar {
        border-bottom: 2px solid #0097cc;
    }

    .content-wrapper {
        padding: 0 10px;
    }

    .content {
        padding: 20px 10px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-buttons a {
        width: 100%;
        text-align: center;
    }

    .comment-form .form-group {
        flex-direction: column;
    }

    .comment-form .captcha-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form input[type="number"] {
        width: 100%;
    }

    .comment.replied {
        margin-left: 15px;
    }

    .reply-form {
        margin-left: 15px;
    }

    .post-content ul, .post-content ol {
        padding-left: 30px;
    }

    /* Adjust intro section for tablets */
    .intro-title {
        font-size: clamp(1.2rem, 4vw, 2rem); /* Scales between 19.2px and 32px */
    }

    .intro-tagline {
        font-size: clamp(0.9rem, 2vw, 1.2rem); /* Scales between 14.4px and 19.2px */
    }
}

@media (max-width: 480px) {
    /* Adjust intro section for mobile phones */
    .intro-title {
        font-size: clamp(1rem, 3.5vw, 1.5rem); /* Scales between 16px and 24px */
    }

    .intro-tagline {
        font-size: clamp(0.8rem, 1.8vw, 1rem); /* Scales between 12.8px and 16px */
    }
}