/* Base Styles */
:root {
  --primary-color: #000000;
  --primary-dark: #5C0000;
  --primary-light: #A52A2A;
  --text-color: #333333;
  --light-gray: #F5F5F5;
  --medium-gray: #E0E0E0;
  --dark-gray: #757575;
  --white: #FFFFFF;
  --black: #000000;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 6px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
.header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.search-box {
  flex: 1;
  max-width: 500px;
  margin: 0 1.5rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

a.btn.home.btn-primary {
    color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* Main Content */
.main {
  padding: 2rem 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Document Cards */
.document-image {
  background-color: #F5F5F5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%238B0000' d='M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60px;
}
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.document-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.document-image {
  height: 180px;
  background-color: var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-image img {
  width: 60px;
  height: 60px;
  opacity: 0.7;
}

.document-content {
  padding: 1.2rem;
}

.document-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.document-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--dark-gray);
  margin-bottom: 0.8rem;
}



.document-category {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: var(--primary-light);
  color: var(--white);
  border-radius: 3px;
  font-size: 0.7rem;
  margin-bottom: 0.8rem;
}

.featured-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: #FFD700;
  color: var(--black);
  border-radius: 3px;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.badge.badge-primary {
    margin-right: 10px;
    margin-bottom: 10px;
}


/* Single Document Page */
.document-header {
  margin-bottom: 2rem;
}

.document-title-single {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.document-meta-single {
  display: flex;
  gap: 1rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.pdf-viewer {
  width: 100%;
  height: 600px;
  background-color: var(--medium-gray);
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

 /* article section */
 .single-article {
    max-width: 800px;
    margin: auto;
}
 .single-article h1 {
            color: #333333;
            font-weight: 700;
            font-size: 2.25rem;
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 0.5rem;
        }

           .single-article h2 {
            color: #333333;
            font-weight: 600;
            font-size: 1.5rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
            letter-spacing: -0.01em;
        }

      .single-article  p {
            margin-bottom: 1.2rem;
            font-size: 17px;
        }
        .highlight {
            background-color: #f2f9ff;
            padding: 2px 5px;
            border-radius: 3px;
        }
        strong, b {
            font-weight: 600;
        }
       .single-article ul {
            list-style-type: none;
            padding-left: 1.2rem;
            margin-bottom: 1.5rem;
        }
        .single-article ul li {
            position: relative;
            padding-left: 0.5rem;
            margin-bottom: 0.5rem;
        }
      .single-article  ul li:before {
            content: "•";
            position: absolute;
            left: -1rem;
            color: #555555;
        }
       .single-article ol {
            padding-left: 1.5rem;
            margin-bottom: 1.5rem;
        }
       .single-article ol li {
            margin-bottom: 0.5rem;
        }
    .single-article    a {
            color: #2970e3;
            text-decoration: none;
            border-bottom: 1px solid rgba(41, 112, 227, 0.2);
            transition: border-color 0.2s ease;
        }
     ..single-article   a:hover {
            border-bottom: 1px solid rgba(41, 112, 227, 0.6);
        }


        /* html table */

         /* Basic table styling without classes or IDs */
        .single-article table {
            border-collapse: collapse;
            width: 100%;
            max-width: 800px;
            margin: 20px 0;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
        }

        .single-article thead tr {
            background-color: #8B0000;
            color: white;
            text-align: left;
        }

        .single-article th, td {
            padding: 12px 15px;
            border-bottom: 1px solid #dddddd;
              text-align: left;
        }


        .single-article tbody tr:nth-child(even) {
            background-color: #f3f3f3;
        }

        .single-article tbody tr:last-child {
            border-bottom: 2px solid #8B0000;
        }

        /* Hover effect */
        .single-article tbody tr:hover {
            background-color: #f1fff9;
        }

/* video embed */

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

.video-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.non-youtube-message {
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

/* subscribe button section */
 .subscribe-container-badge {
    position: relative;
    padding: 30px 20px;
    margin: 30px 0;
    background-color: #f8f8f8;
    border-radius: 6px;
    border: solid 1px #000000;
    max-width: 800px;
    margin: auto;
    
  }  
  .subscribe-badge {
    position: absolute;
    top: 0;
    right: 30px;
    transform: translateY(-50%);
    background-color: #000000;
    color: white;
    padding: 5px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    z-index: 10;
   
  }
  
  .subscribe-badge-text {
    color: #ffffff;
  }
  
  .follower-count {
    background-color: white;
    color: #8B0000;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
  }
  
  .subscribe-badge:hover {
    background-color: #a50000;
    transform: translateY(-50%) translateX(-5px);
  }
  
  .subscribe-text {
    text-align: left;
    font-size: 16px;
    color: #444;
  }
  
  /* subscribe Responsive adjustments */
  @media (max-width: 768px) {
    .subscribe-container-badge {
      padding: 40px 15px 20px;
    }
    
    .subscribe-badge {
      right: 50%;
      transform: translate(50%, -50%);
    }
    
    .subscribe-badge:hover {
      transform: translate(50%, -50%) translateY(-3px);
    }
  }


/* Related items */
.related-documents {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.related-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.related-list {
    list-style: none;
}

.related-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.related-item a:hover {
    color: var(--primary-color);
}

.related-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.8rem;
    background-color: var(--primary-light);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-item-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--white);
}

.related-item-title {
    flex: 1;
    font-weight: 500;
}

.related-item-meta {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .related-documents {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .related-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-item-icon {
        margin-bottom: 0.5rem;
    }
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.alert-danger {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.alert-success {
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: 3px;
}

.pagination a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pagination .current {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Footer */
.legals a {
    color: white;
    padding: 5px;
    margin: 5px;
}
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ads */
.gads {
    text-align: center;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-box {
    order: 3;
    width: 100%;
    margin: 1rem 0;
  }
  
  .document-image {
    height: 150px;
  }
  
  .pdf-viewer {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
  }
}

