/* CSS for movie detail */

.custom-container {
    width: 800px; /* Set the width */
    height: 400px; /* Set the height */
    margin: 0 auto; /* Center the container horizontally */
    
    /* Optionally, you can add additional styles such as background color, border, etc. 
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

section {
    padding-bottom: 10px; /* Adjust as needed */
}

.video-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
}

/* never aply this fucking class again: .movie{float: left;width: calc(100% - 20px);}*/

.movie img {
    width: 100%;
    aspect-ratio: 2 / 3;   /* enforces 200x300 poster shape */
    object-fit: cover;     /* crop safely */
    height: auto;          /* overridden by aspect-ratio */
    display: block;
    background: #000;      /* prevents visual jump */
}

/* Specific adjustments for iPhone 12 Mini */
@media (max-width: 375px) { /* iPhone 12 Mini has a screen width of 375px */
    .movie img {
        max-width: 100%; /* Ensure no horizontal overflow */
        margin: 0 auto; /* Center the image within its container */
    }
}

.movie ul {
    float: left;
    margin: 0 2px 0 10px; /* FIXED: added px */
    width: calc(100% - 260px); /* Adjusted to accommodate image width and spacing */
}

.movie ul li {
    float: left;
    display: block;
    clear: both;
    padding: 0 0 5px 0; /* Reduced padding for tighter spacing */
    line-height: 1.4;
}

.movie ul li:first-child {
    font-weight: bold;
    font-size: 22px;
}

.movie ul li a {
    color: #c22026;
    text-decoration: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .movie img {
        float: none; /* Remove float for stacking on small screens */
        margin: 0 auto 10px auto; /* Center the image with space below */
    }

    .movie ul {
        float: none; /* Remove float for stacking on small screens */
        margin: 0 auto; /* Center the list */
        width: 100%; /* Ensure full width */
    }
}

.related h3{float:left;padding: 0 10px; margin-bottom: 10px; color:#000000; width: calc(100% - 20px)}
.relatemovie{float: left;width: calc(16.6% - 15px); margin: 0 5px 10px 10px; position: relative;}
.relatemovie img{max-width: 100%; width: 100%;}
.relatedname{position: absolute;bottom: 3px; left: 0;right: 0; background-color:rgba(0,0,0,0.8); padding: 5px 10px;line-height: 1.4;font-size: 14px; }
.relatemovie a{color:#fff; text-decoration: none;}

.mov{float: left; width: calc(20% - 20px); padding:10px 10px 0 10px; position: relative;min-width: 200px }
.mov img{max-width: 100%;}
.mov:hover img{opacity: 0.7;}
.movietitle{position: absolute; line-height: 1.3; bottom: 0; right: 10px;left:10px; padding: 10px; background-color: rgba(0,0,0,0.8); color:#fff; font-size: 14px; }

.LA_comments{float: left;width: calc(100% - 20px); margin:0 0 20px 0;background-color: #fff;padding: 10px; /*box-shadow: 0px 1px 2px rgba(0,0,0, 0.3);*/}
.LA_comments h3{float:left;padding: 0 10px; margin-bottom: 10px; color:black; padding: 0 10px;}

.comment-card {
    border: none;
}

/* ===== VIDEO DETAIL PAGE STYLES ===== */

/* Hero Section */
.video-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-badge i {
    margin-right: 5px;
}

.video-title {
    font-size: 36px;
    font-weight: 800;
    margin: 15px 0 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
    padding: 0 15px;
}

.video-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
    padding: 0 15px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

.meta-item i {
    font-size: 16px;
}

.category-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Video Player Section - White Background with Shadow */
.video-player-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.player-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 1400px;
    margin: 0 auto;
}

/* KEEP: your second .video-container (it overrides the earlier one by order) */
.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

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

/* Description Section */
.video-description-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.description-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.section-title i {
    color: #667eea;
    font-size: 26px;
}

.description-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.description-content p {
    margin: 0;
}

/* Comments Section - Single Column Vertical */
.comments-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.comments-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1400px;
    margin: 0 auto;
}

/* Comment Form at Top */
.comment-form-wrapper {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0 30px;
}

.form-group {
    position: relative;
    margin-bottom: 15px;
}

.comment-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.comment-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: #999;
    background: white;
    padding: 2px 5px;
}

.btn-submit-comment {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-comment:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.login-prompt {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
}

.login-prompt i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-prompt h4 {
    color: #173b6c;
    margin-bottom: 20px;
    font-size: 18px;
}

.btn-login {
    background: #000000;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #333333;
    color: white;
}

/* Comments List Below Form */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.comment-header {
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar,
.user-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    color: #173b6c;
    font-size: 16px;
}

.comment-time {
    font-size: 13px;
    color: #666;
}

.comment-time i {
    font-size: 12px;
    margin-right: 3px;
}

.comment-content {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.no-comments {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-comments p {
    margin: 0;
    font-size: 16px;
}

/* Related Videos Section - Smaller Portrait Cards */
.related-videos-section {
    padding: 60px 0;
    background: white;
}

.section-title-center {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title-center i {
    color: #667eea;
}

.related-grid-portrait {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.related-video-portrait {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-video-portrait:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.related-video-portrait a {
    text-decoration: none;
    color: inherit;
}

.portrait-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 140%; /* Portrait ratio */
    background: #f0f0f0;
}

.portrait-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-video-portrait:hover .portrait-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.related-video-portrait:hover .play-overlay {
    opacity: 1;
}

.portrait-info {
    padding: 12px;
}

.portrait-title {
    font-size: 14px;
    font-weight: 600;
    color: #173b6c;
    line-height: 1.4;
    min-height: 40px;
    margin: 0;
}

/* ===== MOBILE RESPONSIVE ===== */

@media screen and (max-width: 768px) {
    .video-hero {
        padding: 30px 15px 20px;
    }

    .video-title {
        font-size: 24px;
    }

    .video-meta {
        font-size: 13px;
        gap: 10px;
    }

    .player-card {
        padding: 15px;
        border-radius: 10px;
    }

    .description-card,
    .comments-card {
        padding: 20px 15px;
    }

    .section-title,
    .section-title-center {
        font-size: 20px;
    }

    .related-grid-portrait {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .comment-form-wrapper {
        padding: 20px 15px;
    }
}

@media screen and (max-width: 576px) {
    .video-title {
        font-size: 20px;
    }

    .meta-item {
        font-size: 12px;
    }

    .section-title,
    .section-title-center {
        font-size: 18px;
    }

    .btn-submit-comment,
    .btn-login {
        width: 100%;
        justify-content: center;
    }

    .related-grid-portrait {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portrait-title {
        font-size: 13px;
        min-height: 36px;
    }

    .play-overlay {
        font-size: 40px;
    }
}

.criminal_obj {
  max-height: 320px;
  max-width: 220px;
  display: flex;
  justify-content: center; /* Center the items horizontally */
}

.criminal_pic{float: left; width: calc(20% - 20px); padding:10px 10px 0 10px; position: relative; min-width: 200px }
.criminal_pic img{max-width: 100%;}
.criminal_pic:hover img{opacity: 0.7;} /* FIXED */
.criminal_alias {position: absolute; line-height: 1.3; bottom: 0; right: 10px;left:10px; padding: 10px; background-color: rgba(0,0,0,0.8); color:#fff; font-size: 14px; }

.pagination{float: left; width: 100%; margin: 20px 0;}
.pagination ul{float: left; width: calc(100% - 20px); margin: 0 10px;}
.pagination ul li{display: inline; list-style: none; float: left; margin-left: 3px; margin-bottom: 3px;}
.pagination ul li a{text-decoration: none; float: left; padding: 7px 10px; background-color: #c22026; color:#fff;}
.menuactive{background-color: #6f0004 !important}
.pagination ul li:hover a{background-color: #6f0004;}

/* Center the logo and search bar */
.logo_center {
  margin: 0 auto; /* Center horizontally */
  text-align: center; /* Center the content */
  padding: 10px;
  display: block; /* Ensure it's a block element */
}

.logo_center img {
  width: 220px; /* Default desktop size */
  height: 180px;
  display: block; /* Remove inline spacing */
  margin: 0 auto; /* Center the image itself */
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 768px) {
  .logo_center {
    width: 100%; /* Full width container */
    padding: 2px 0; /* Vertical padding only */
  }

  .logo_center img {
    width: 250px; /* Bigger on mobile */
    height: auto; /* Maintain aspect ratio */
    max-width: 80%; /* Don't exceed screen */
    margin: 0 auto; /* Keep centered */
  }
}

/* iPhone 12 Mini and similar */
@media screen and (max-width: 390px) {
  .logo_center img {
    width: 200px;
    max-width: 70%;
  }
}
/* Search Field Container */
.search {
  display: flex;
  align-items: stretch; /* FIX: align input + button height */
  justify-content: center; /* CENTER THE SEARCH BAR */
  position: relative;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto; /* CENTER HORIZONTALLY */
  margin-right: auto; /* CENTER HORIZONTALLY */
  padding: 0 5px; /* Add padding for mobile */
  gap: 1px; /* FIX: spacing without margin hacks */
  flex-wrap: nowrap; /* FIX: prevent wrapping in BS5 */
}

/* Search wrapper for input and dropdown */
.search-wrapper {
  flex: 0 0 270%;
  position: relative;
  max-width: 1100px; /* Limit width so it stays centered */
}

/* Search Input Field */
.search input[type=text] {
  width: 100%;
  padding: 10px 15px;
  font-size: 17px;
  color: #000000;
  border: 2px solid blue;
  background: #f1f1f1;
  border-radius: 5px;
  box-sizing: border-box;
  height: 100%; /* FIX: match button height */
}

/* Search Button */
.search button {
  display: flex;              /* FIX */
  align-items: center;        /* FIX */
  justify-content: center;    /* FIX */
  padding: 10px 20px;
  background: #000000;
  color: white;
  font-size: 17px;
  border: 2px solid black;
  cursor: pointer;
  border-radius: 5px;
  flex-shrink: 0;
  transition: background 0.3s ease;
  white-space: nowrap; /* FIX */
}

.search button:hover {
  background: #333333;
}

/* FIX: Explicit icon sizing (desktop default) */
.search button i {
  font-size: 17px;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 2px); /* FIX: avoids overlap */
  left: 0;
  right: 0;
  background: white;
  border: 2px solid blue;
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1050; /* FIX: above BS components */
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Individual Autocomplete Item */
.autocomplete-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

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

.autocomplete-item:hover {
  background: #f0f8ff;
}

.autocomplete-item strong {
  color: #000000;
  font-weight: 600;
}

.autocomplete-item .alias {
  color: #666666;
  font-style: italic;
  margin-left: 5px;
}

.autocomplete-item.no-results {
  color: #999999;
  text-align: center;
  cursor: default;
  font-style: italic;
}

.autocomplete-item.no-results:hover {
  background: white;
}

/* ===== SEARCH MOBILE RESPONSIVE (REPAIRED BRACES + MERGED DUPLICATES) ===== */
@media screen and (max-width: 768px) {
  .search {
    max-width: 100%;
    padding: 0 10px;
    gap: 1px;
  }

  .search-wrapper {
    flex: 0 0 99%;
    
  }

  .search input[type=text] {
    padding: 16px 18px;
    font-size: 18px;
    border-radius: 8px;
  }

  .search button {
    padding: 16px 18px;
    font-size: 18px;
    border-radius: 8px;
  }

  /* ✅ NEW: Larger search icon on smartphones */
  .search button i {
    font-size: 22px;
  }

  .autocomplete-dropdown {
    max-height: 250px;
    border-radius: 0 0 8px 8px;
    font-size: 16px;
  }

  .autocomplete-item {
    padding: 14px 18px;
  }
}

/* Very small phones */
@media screen and (max-width: 375px) {
  .search {
    padding: 0 8px;
  }

  .search input[type=text] {
    font-size: 16px;
    padding: 14px 16px;
  }

  .search button {
    padding: 14px 16px;
    font-size: 16px;
  }

  /* Slightly reduce icon for very small screens */
  .search button i {
    font-size: 20px;
  }
}

/* Focus states */
.search input[type=text]:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Center the main content */
.content {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.movies {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}


@media (max-width: 768px) {
  .mov {
    width: 50%;
    min-width: unset;
    float: none;
  }
}

.movietitle {
  margin-top: 10px;
}

.movies {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

/* --------------------------------------------------------------
   About
-------------------------------------------------------------- */

/* Common styles for all criminal_info sections */
.criminal_info {
  margin-bottom: 20px;
}

/* Styles for the title within the criminal_info section */
.criminal_info .criminal-title h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 4px;
  padding-bottom: 4px;
  padding-left: 20px;
  position: relative;
  color: #173b6c;
}

/* Styles for the poster within the criminal_info section */
.criminal_info .col-lg-4 .criminal_poster img {
  max-height: 380px;
  max-width: 380px;
  float: left;
  overflow: hidden;
}

/* Styles for the information within the criminal_info section */
.criminal_info .col-lg-8 .row ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.criminal_info .col-lg-8 .row ul strong {
  margin-right: 10px;
}

.criminal_info .col-lg-8 .row ul i {
  font-size: 16px;
  margin-right: 5px;
  color: #149ddd;
  line-height: 0;
}

.criminal_info .col-lg-8 .row ul:last-child {
  margin-bottom: 0;
  padding: 2px 20px 0 50px;
}

/* Styles for the description within the criminal_info section */
.criminal_info .col-lg-8 .row p:last-child {
  margin-bottom: 0;
}

.criminal_info h3 {
  font-weight: 700;
  font-size: 26px;
  color: #173b6c;
  text-align: center;
}

/* Center align the text */
.criminal_other_obj {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.criminal_other_pic {
  flex: 1;
  max-width: 320px;
  margin: 10px;
  position: relative;
  overflow: hidden;
}

.criminal_other_pic img {
  max-width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.criminal_other_pic img:hover {
  transform: scale(1.1);
}

/* Zoom effect on click */
.criminal_other_pic:target img {
  transform: scale(1.5);
}

/* ===== Criminal Detail Page Styles ===== */

/* Hero Section */
.criminal-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.hero-content {
    position: relative;
}
.video-hero {
    margin-top: 120px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.status-wanted { background: #dc3545; }
.status-arrested { background: #ffc107; color: #000; }
.status-convicted { background: #ff6b6b; }
.status-deceased { background: #6c757d; }
.status-unknown { background: #17a2b8; }

.criminal-name {
    font-size: 48px;
    font-weight: 800;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.criminal-alias {
    font-size: 28px;
    font-style: italic;
    opacity: 0.9;
    margin: 10px 0;
}

.gang-affiliation {
    font-size: 18px;
    opacity: 0.85;
    margin-top: 15px;
}

/* Profile Grid Layout */
.criminal-profile {
    padding: 40px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar (Left Column) */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Photo Card */
.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
}

.main-photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
}

.danger-level {
    font-size: 16px;
    font-weight: 700;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateX(5px);
}

.stat-item.critical {
    background: #ffe5e5;
    border-left: 4px solid #dc3545;
}

.stat-item.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.stat-item.danger {
    background: #f8d7da;
    border-left: 4px solid #ff6b6b;
}

.stat-item i {
    font-size: 32px;
    margin-right: 15px;
    color: #173b6c;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #dc3545;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Categories Card */
.categories-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Main Content (Right Column) */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* (KEEP: this second .section-title block is used by criminal pages too) */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.section-title i {
    color: #667eea;
    font-size: 28px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    color: #173b6c;
    font-weight: 600;
}

.info-value.highlight {
    color: #dc3545;
    font-size: 18px;
}

/* Description Card */
.description-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.description-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.description-content p {
    margin-bottom: 15px;
}

/* Family Grid */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.family-member {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.family-member:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.member-relation {
    font-size: 12px;
    text-transform: uppercase;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-name {
    font-size: 16px;
    color: #173b6c;
    font-weight: 600;
}

.member-name a {
    color: #dc3545;
    text-decoration: none;
}

.member-name a:hover {
    text-decoration: underline;
}

/* Photos Gallery */
.photos-gallery {
    padding: 60px 0;
    background: #f8f9fa;
}

.gallery-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.gallery-title i {
    color: #667eea;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    font-size: 14px;
    text-align: center;
}

/* Call to Action Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h3 {
    font-size: 32px;
    color: #173b6c;
    margin-bottom: 15px;
}

.cta-card p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateX(-5px);
}

.btn-report {
    background: #dc3545;
    color: white;
}

.btn-report:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ===== MOBILE RESPONSIVE ===== */

@media screen and (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .criminal-name {
        font-size: 36px;
    }

    .criminal-alias {
        font-size: 22px;
    }
}

@media screen and (max-width: 768px) {
    .criminal-hero {
        padding: 40px 20px;
    }

    .criminal-name {
        font-size: 28px;
    }

    .criminal-alias {
        font-size: 20px;
    }

    .profile-sidebar {
        order: 1;
    }

    .profile-main {
        order: 2;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 250px;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .cta-card h3 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .family-grid {
        grid-template-columns: 1fr;
    }
}
