/* blogoralite theme complete responsive CSS */ /* Base styles */ * { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.6; color: #333; background-color: #f8f9fa; } a { text-decoration: none; color: #007bff; transition: color 0.3s ease; } a:hover { color: #0056b3; } img { max-width: 100%; height: auto; border: 0; } #wrapper { max-width: 1300px; margin: 0 auto; padding: 0 1rem; } #header { background: linear-gradient(135deg, #007bff, #0056b3); color: white; border-radius: 8px 8px 0 0; margin-bottom: 1rem; box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2); } #header .buffer .buffer { display: flex; align-items: center; flex-wrap: wrap; padding: 1rem; max-width: 1200px; margin: 0 auto; } #header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; } #header ul li { margin-right: 1.5rem; font-size: 1rem; text-transform: uppercase; font-weight: 400; } #header ul li a { color: white; padding: 0.5rem 0; display: block; transition: opacity 0.3s ease; } #header ul li a:hover { opacity: 0.8; text-decoration: none; } #header form { display: flex; margin-left: auto; margin-top: 0.5rem; flex: 1; max-width: 300px; } #header form input { flex: 1; padding: 0.75rem; border: none; border-radius: 4px 0 0 4px; font-size: 1rem; } #header form button { padding: 5px; margin-left: -50px; background-color: #28a745; color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; transition: background-color 0.3s ease; } #header form button:hover { background-color: #218838; } #body { background-color: white; border-radius: 0 0 8px 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); margin-bottom: 1rem; overflow: hidden; } #content .buffer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 2rem; width: 100%; } .post { background: white; border-radius: 8px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; width: 100%; padding: 1rem; } .post:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); } .post h2 { font-size: 1.5rem; margin: 0 0 0.5rem; font-weight: 700; line-height: 1.2; } .post h2 a { color: #333; } .post h2 a:hover { color: #007bff; } .post .date { font-size: 0.9rem; color: #666; margin-bottom: 1rem; } .post .date a { color: #28a745; font-weight: 500; } .post .thumb { margin-bottom: 1rem; border-radius: 8px; overflow: hidden; } .post .thumb img { width: 100%; height: 200px; object-fit: cover; } .post p { margin-bottom: 1rem; text-align: justify; } .post .readmore { display: inline-block; background-color: #007bff; color: white; padding: 0.75rem 1.5rem; border-radius: 4px; font-weight: 500; transition: background-color 0.3s ease; } .post .readmore:hover { background-color: #0056b3; text-decoration: none; } #footer { text-align: center; padding: 2rem; background-color: #f8f9fa; border-top: 1px solid #dee2e6; color: #666; font-size: 0.9rem; } #footer a { color: #007bff; } #footer a:hover { color: #0056b3; } .single-post .post { width: 1000px !important; width: 100%; margin: 0 auto; padding: 2rem; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); font-size: 1.2rem; } .single-post .post img { width: 100%; height: 550px; border-radius: 8px; margin-bottom: 1rem; object-fit: cover; } /* Responsive Media Queries */ /* Tablet Landscape (992px and below) */ @media screen and (max-width: 992px) { #content .buffer { grid-template-columns: repeat(2, 1fr); gap: 1rem; justify-items: center; } #header .buffer .buffer { padding: 0.5rem; } #header ul li { margin-right: 1rem; font-size: 0.9rem; } #header form { max-width: 250px; } .post .thumb img { height: 180px; } .single-post .post { width: 800px !important; padding: 0.5rem; font-size: 0.9rem; } .single-post .post img { height: 350px; } } @media screen and (max-width: 1040px) { .single-post .post { width: 800px !important; padding: 1.5rem; font-size: 0.9rem; } .single-post .post img { height: 450px; } } @media screen and (max-width: 934px) { #content p { width: 850px !important; } #content .buffer { width: 600px !important; padding: 1rem; } #content .buffer .thumb img { width: 800px !important; height: 400px; } } @media screen and (max-width: 850px) { .single-post .post { width: 700px !important; padding: 1.5rem; font-size: 0.9rem; } .single-post .post img { height: 450px; } #content p { width: 700px !important; } } /* Tablet Portrait (768px and below) */ @media screen and (max-width: 768px) { #content .buffer { grid-template-columns: 1fr; padding: 1rem; } #content p { width: 400px !important; } #content .buffer { width: 600px !important; padding: 1rem; } #content .buffer .thumb img { width: 450px !important; height: 300px; } #header .buffer .buffer { flex-direction: column; align-items: flex-start; } #header ul { margin-bottom: 1rem; } #header ul li { margin-right: 1rem; } #header form { margin-left: 0; max-width: 100%; margin-top: 1rem; } .post { padding: 0.5rem; } .post h2 { font-size: 1.25rem; } .post .thumb img { height: 160px; } .single-post .post { width: 500px !important; padding: 1rem; font-size: 1rem; } .single-post .post img { height: 350px; } #footer { padding: 1rem; } } /* Mobile (576px and below) */ @media screen and (max-width: 576px) { #wrapper { padding: 0 0.5rem; } #header { margin-bottom: 0.5rem; } #header .buffer .buffer { padding: 0.5rem; } #header ul li { margin-left: 10px; font-size: 15px; } #content .buffer { width: 600px !important; padding: 1rem; } #content .buffer .thumb img { width: 500px !important; height: 300px; } #header form input { font-size: 0.9rem; } #content .buffer { padding: 1rem 0.5rem; } .post h2 { font-size: 1.1rem; } .post .readmore { padding: 0.5rem 1rem; font-size: 0.9rem; } .single-post .post { width: 450px !important; padding: 1rem; font-size: 0.9rem; margin-left: 10px; } .single-post .post img { height: 350px; } #content p { width: 400px !important; } #footer { padding: 1rem 0.5rem; font-size: 0.8rem; } .comments-area { padding: 10px; } .comments-title { font-size: 20px; } .comment-content { font-size: 14px; } .comment-respond input, .comment-respond textarea { padding: 8px; } .comment-respond button { padding: 8px 16px; } } /* Comments Section */ .comments-area { margin-top: 50px; padding: 20px; background-color: #f9f9f9; border-radius: 8px; } .comments-title { font-size: 24px; font-weight: bold; margin-bottom: 20px; } .comment-list { list-style: none; padding-left: 0; } .comment-list li { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #ddd; } .comment-author, .comment-meta { font-size: 14px; color: #555; } .comment-content { font-size: 16px; line-height: 1.6; margin-top: 5px; } .comment-respond { margin-top: 30px; } .comment-respond input, .comment-respond textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; } .comment-respond button { padding: 10px 20px; background-color: #333; color: #fff; border: none; border-radius: 5px; cursor: pointer; } .comment-respond button:hover { background-color: #555; } .comment-list img.avatar { border-radius: 50%; width: 20px; height: 20px; }