/* General Styles */
:root {
    --primary-color: #19505e;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --dark-text: #3f4040;
    --light-text: #fefefe;
    --border-color: #dee2e6;
    --home-section: #dee2e6;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1a1a1a; /* Clean dark text for contrast */

  /* Beautiful multicolor gradient animation */
  background: linear-gradient(
    270deg,
    #ff6ec4,
    #7873f5,
    #4ade80,
    #38bdf8,
    #facc15,
    #f472b6,
    #ff6ec4
  );
  background-size: 1200% 1200%;
  animation: gradientShift 8s ease-in-out infinite;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Faster and smoother gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-header {
    padding: 0;
    color: var(--light-text);
    position: fixed;   /* Changed from relative to fixed */
    top: 0;
    left: 0;
    width: 100%;      /* Full width */
    z-index: 9999;    /* Make sure it stays on top */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    min-height: 60px;
    padding: 0 10px;
  
}

.main-header .logo h1 {
    margin: 0;
    font-size: 28px;
    color: var(--light-text);
}

.main-header .logo a {
    text-decoration: none;
    color: inherit;
}

.main-nav {
    display: flex;
    align-items: center;
   
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav ul {
        display: none; /* Hide the main nav on smaller screens */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .main-nav ul.open {
        display: flex; /* Show the menu when the 'open' class is added */
    }

    .main-nav ul li {
        padding: 10px 0;
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
    }

    .mobile-toggle {
        display: block; /* Show the hamburger button on smaller screens */
    }
}




main {
    flex: 1; /* Allows main content to grow and push footer down */
    padding-top: 60px;
}

.section-padding {
    padding: 40px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 10px;
}

h2 {
    
    font-size: 30px;
    margin-bottom: 40px;
    position: relative;
}



/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-info {
    background-color: var(--info-color);
    color: var(--light-text);
}

.btn-info:hover {
    background-color: #138496;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--light-text);
}

.btn-danger:hover {
    background-color: #bd2130;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}


/* Latest Posts Section */
#latest-posts{
background:var(--home-section);
}

.latest-posts-section h2{
    text-align:center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.1);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 15px;
}

.post-card-content h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
}

.post-card-content h3 a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

.post-card-content h3 a:hover {
    color: var(--primary-color);
}

.post-card-meta {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.post-card-excerpt {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.post-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.post-card .read-more:hover {
    text-decoration: underline;
}

.view-all-posts {
    text-align: center;
    margin-top: 40px;
}

/* About & Contact Sections */
#contact{
   background:var(--home-section);
}

.about-section, .contact-section {
    padding:15px;
    text-align: center;
}

.about-section p, .contact-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 18px;
    line-height: 1.8;
}

.contact-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: auto; /* Pushes footer to the bottom */
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: var(--dark-text);
    min-height: 150px;
    padding:30px 0;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}





.single-page-layout{
    background: #f8f9fa;
    padding:15px;
    
    
}

.single-page-layout h1{
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    
}

.single-page-layout h1::after {
    content: '';
    display: block;
    width: 60px;
    height:4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}



.page-body {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body h1, .page-body h2, .page-body h3, .page-body h4, .page-body h5, .page-body h6 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #222;
    
}

.page-body ul, .page-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-body a:hover {
    text-decoration: underline;
}


/* Single Post Page Layout */
.single-post-layout {
    display: flex;
    gap: 30px;
    background-color: #fff;
    padding-top:25px;
}

.post-content-area {
    flex: 3; /* Takes up more space */
    padding: 15px;
    box-shadow: var(--box-shadow);
}

.post-header h1 {
    font-size: 35px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #222;
    text-align: left;
}

.post-meta {
    font-size: 13px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 30px;
}

.post-body {
    font-size: 17px;
    line-height: 1.5;
    color: #333;
}

.post-body p {
    margin-bottom: 18px;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #222;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.post-body a:hover {
    text-decoration: underline;
}

/* Sidebar on Single Post Page */
.sidebar-area {
    flex: 1; /* Takes up less space */
    padding:0 15px;
    box-shadow: var(--box-shadow);
    align-self: flex-start; /* Stick to the top */

    /* Add these for sticky behavior */
    position: sticky;
    top: 40px; /* Distance from viewport top when sticky */
}

.sidebar-widget {
    margin-bottom: 15px;
}

.sidebar-widget h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sidebar-widget .recent-posts img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-right: 10px;
    display: block; /* prevents inline image spacing issues */
}


.sidebar-widget .recent-posts li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sidebar-widget .recent-posts li span {
    font-size: 14px;
    color: var(--secondary-color);
    display: block;
    margin-top: 2px;
}

/* Post Not Found */
.post-not-found {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
}
.post-not-found h2 {
    color: var(--danger-color);
}


/* Alerts/Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 2px;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post-layout {
        flex-direction: column;
    }

    .post-content-area, .sidebar-area {
        width: 100%;
        padding: 20px;
    }

    h2 {
        font-size: 25px;
    }

    .main-footer .container {
        flex-direction: column;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-header .logo h1 {
        font-size: 24px;
    }
    .main-nav a {
        font-size: 14px;
    }
    .hero-content h1 {
        font-size: 30px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .post-header h1 {
        font-size: 30px;
    }
    .post-meta {
        font-size: 13px;
    }
    .post-body {
        font-size: 16px;
    }
}

.pagination {
    text-align: center;
    margin-top: 30px;
}
.pagination-btn {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
}
.pagination-btn:hover {
    background: #ddd;
}
.pagination-btn.active {
    background: #007BFF;
    color: white;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f1f1f1;
  color: #444;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
}
.social-button:hover {
  background-color: #e4e4e4;
  transform: scale(1.05);
}
.social-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.facebook  { color: #1877F2; }
.twitter   { color: #000000; } /* X (formerly Twitter) is black */
.linkedin  { color: #0077B5; }
.youtube   { color: #FF0000; }
.whatsapp  { color: #25D366; }
.messenger { color: #0084FF; }
.copylink  { color: #6c757d; }

.share-this{
 font-size: 1.1rem; 
 font-weight:600;
 Padding: 20px 0 0 0 ;
 width: 100px;
 border-bottom: 2px solid black;
}


/* Video Player */
.custom-video-player {
    max-width: 800px;
    width: 100%;
    aspect-ratio: 16 / 9; /* This enforces height automatically */
    background-color: #000;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.custom-video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Volume Control */
#volume {
    width: 80px; /* Adjust width as needed */
    max-width: 80px;
    min-width: 80px;
}

/* Hide native video controls download button */
.custom-video-player video::-internal-media-controls-download-button {
    display: none;
}

.custom-video-player video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.custom-video-player video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

/* Custom Video Controls */
.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    color: #fff;
    user-select: none;
    opacity: 1; /* For fade effect */
    transition: opacity 0.3s ease;
    pointer-events: auto; /* clickable */
}

/* Hidden state for controls */
.controls.hide {
    opacity: 0;
    pointer-events: none; /* not clickable */
}

/* Control elements styling */
.controls button,
.controls input[type=range],
.controls select {
    cursor: pointer;
}

.controls button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 0 8px;
}

.controls input[type=range] {
    flex-grow: 1;
}


.author-info {
  border-top: 1px solid #ddd;         /* Soft border */
  color: #333;                   /* Dark text color */
  margin: 20px 0;                /* Vertical spacing */
}

.author-info h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #19505e;               /* Theme color */
}

.author-info p {
  line-height: 1.5;
  font-size: 1rem;
}


.author-info a {
  text-decoration:none;
  color:#19505e;
}




.author-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;         /* Makes the image round */
  object-fit: cover;          /* Ensures image fills without distortion */
  vertical-align: middle;     /* Aligns with text if inline */
  margin-right: 8px;          /* Spacing if next to text */
  border: 1px solid #ccc;     /* Optional: adds subtle border */
}

.author-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 5px;
}


.author-name {
  color: #19505e;              /* Primary theme color */
  font-weight: 500;            /* Slightly bold for emphasis */
  text-decoration: none;       /* Remove underline */
  font-size: 14px;             /* Adjust as needed */
  vertical-align: middle;      /* Aligns with avatar if inline */
  transition: color 0.2s ease; /* Smooth hover transition */
}

.author-name:hover {
  color: #117a8b;              /* Change color on hover */
  text-decoration: underline;  /* Optional: show underline on hover */
}

.author-link {
  color: #19505e;              /* Your theme's primary color */
  font-weight: 600;            /* Slightly bold */
  text-decoration: none;       /* Removes underline */
  font-size: 17px;             /* Readable size */
  vertical-align: middle;      /* Aligns nicely with avatar if inline */
  transition: color 0.2s ease; /* Smooth hover effect */
 
}

.author-link:hover {
  color: #117a8b;              /* Accent color on hover */
  text-decoration: underline;  /* Optional: underline on hover */
}


