:root {
  --primary-blue: #2380e2; /* Your main brand blue color */
  --darker-blue: #3A7DC1; /* A slightly darker shade for gradients/borders */
  --light-blue-transparent-10: #4A90E21A; /* 10% opacity version of primary blue */
  --light-blue-transparent-15: #4A90E225; /* 15% opacity version for slightly more prominent backgrounds */
  --text-dark: #333; /* Common dark text color */
  --background-light-grey: #f0f2f5; /* Light grey background for list items */
  --background-hover-light-grey: #e2e6eb; /* Slightly darker grey for hover */
  --border-grey: #dee2e6; /* Standard border color */
}

img {
  width: 100%;
  display: inline-table;
}

.bg-primary,
.btn-primary {
  background-color: var(--primary-blue) !important;
}

.btn {
  background-color: transparent;
  font-family: "Outfit", Sans-serif;
  font-size: 22px;
  font-weight: 800;
  fill: #fff;
  color: #fff;
  background-image: linear-gradient(120deg, var(--darker-blue) 0%, var(--primary-blue) 100%);
  border-radius: 15px;
  padding: 8px 20px;
  border-color: var(--darker-blue);
}

.bg-primary-light {
  background-color: var(--light-blue-transparent-10) !important;
}

.text-primary {
  color: var(--primary-blue) !important;
}

.text-color{
  color: var(--primary-blue) !important;
}

/* .container {
  display: flex;
  flex-direction: row;
  height: 100vh;
} */

.ceo-image-container {
    text-align: center; /* Center image and name */
    padding-bottom: 15px; /* Padding above the navigation title */
    border-bottom: 1px solid var(--border-grey); /* Subtle separator */
}

.ceo-circle-img {
    width: 120px; /* Adjust size as needed */
    height: 120px; /* Make height and width equal for perfect circle */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 4px solid var(--primary-blue); /* A nice border around the image */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-bottom: 10px; /* Space between image and name */
    display: inline-block; /* Ensure vertical alignment works */
}

.ceo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark); /* Use your defined dark text color */
    margin: 0; /* Remove default margin */
}


.navigation-sidebar {
  width: 20%;
  background-color: #f8f9fa; /* Kept specific for sidebar background, can also be a variable */
  padding: 20px;
  border-right: 1px solid var(--border-grey);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  top: 0;
  left: 0;
  z-index: 1000;
}

.main-content {
  position: fixed;
  width: 60%;
  left: 0;
  padding: 20px;
  display: block;
  margin-left: 20%;
  margin-right: 20%;
  background-color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Disable horizontal scrolling */
  z-index: 1000; /* Ensure it stays on top of other content */
  width: 20%;
  background-color: #f8f9fa; /* Kept specific for sidebar background, can also be a variable */
  padding: 20px;
  border-left: 1px solid var(--border-grey);
}

@media (max-width: 1000px) {
  .navigation-sidebar,
  .sidebar {
    display: none;
  }

  .main-content {
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
  }
}

.about-item {
  margin-bottom: 20px;
  background-color: var(--light-blue-transparent-15);
  border-radius: 12px;
  border-style: solid;
  border-width: 0 0 3px;
  border-color: var(--darker-blue);
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  padding: 15px 25px;
}

.custom-border-bottom {
  border-style: solid;
  border-width: 0 0 3px;
  border-color: var(--darker-blue);
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
}

.para-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4em;
  color: #00022b; /* Kept as a specific dark blue */
}

.heading-secondary {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
}

/* Existing Timeline Styles (unchanged for > 1000px) */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #ccc;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 50%;
  padding: 0 20px;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #007bff; /* Default dot color (can be overridden by inline styles) */
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

.timeline-content {
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  position: relative;
  width: 100%;
}

.timeline-item-left {
  float: left;
  clear: both;
  text-align: right;
}

.timeline-item-left .timeline-dot {
  right: 0;
  transform: translateX(50%);
}

.timeline-item-left .timeline-content {
  text-align: right;
}

.timeline-item-left .timeline-content::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  right: -10px;
  top: 15px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #fff;
}

.timeline-item-right {
  float: right;
  clear: both;
  text-align: left;
}

.timeline-item-right .timeline-dot {
  left: 0;
  transform: translateX(-50%);
}

.timeline-item-right .timeline-content {
  text-align: left;
}

.timeline-item-right .timeline-content::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  left: -10px;
  top: 15px;
  border-width: 10px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
}

.timeline::after {
  content: "";
  display: table;
  clear: both;
}

/* --- Responsive Adjustments for Timeline below 1000px --- */
@media (max-width: 1000px) {
  .timeline {
    padding: 0;
    max-width: 100%; /* Allow timeline container to take full width */
  }

  .timeline::before {
    display: none; /* Hide the central vertical border */
  }

  .timeline-item {
    width: 100%; /* Make items full width */
    padding: 0 15px; /* Add some horizontal padding for the cards themselves */
    float: none; /* Remove floats */
    clear: none; /* Remove clearing */
    margin-bottom: 20px; /* Adjust spacing between stacked cards */
  }

  .timeline-dot {
    display: none; /* Hide the timeline dots */
  }

  .timeline-content {
    /* Ensure content is centered or left-aligned within its full width */
    margin-left: auto; /* Remove specific margins */
    margin-right: auto; /* Remove specific margins */
    text-align: left !important; /* Ensure content text aligns left */
  }

  /* Remove the triangle pointers from the content cards */
  .timeline-item-left .timeline-content::before,
  .timeline-item-right .timeline-content::before {
    display: none;
  }

  /* Reset text alignment for items that were previously left/right */
  .timeline-item-left,
  .timeline-item-right {
    text-align: left; /* All content aligns left now */
  }
}

/* Ensure white text for card titles and text */
.timeline .card-body .card-title,
.timeline .card-body .card-text {
  color: #fff;
  font-weight: 700;
}

.social-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links-list li {
  margin-bottom: 12px;
}

.social-links-list li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--background-light-grey);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-links-list li a:hover {
  background-color: var(--background-hover-light-grey);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-links-list li a i {
  font-size: 20px;
  min-width: 30px;
  text-align: center;
  color: var(--primary-blue);
  margin-right: 8px;
}

/* Specific icon colors (optional - uncomment and adjust as desired) */
.social-links-list li a .fa-youtube { color: #FF0000; }
.social-links-list li a .fa-facebook { color: #1877F2; }
.social-links-list li a .fa-instagram { color: #E4405F; }
.social-links-list li a .fa-linkedin { color: #0A66C2; }
.social-links-list li a .fa-globe { color: var(--primary-blue); }
.social-links-list li a .fa-envelope { color: #D44638; }

.navigation-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation-links-list li {
  margin-bottom: 8px;
}

.navigation-links-list li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--background-light-grey);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

.navigation-links-list li a:hover {
  background-color: var(--primary-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.navigation-links-list li a i {
  font-size: 18px;
  min-width: 28px;
  text-align: center;
  color: var(--primary-blue);
  margin-right: 10px;
  transition: color 0.3s ease;
}

.navigation-links-list li a:hover i {
  color: #fff;
}

/* Removed old conflicting rules to ensure the new styles apply correctly */

.navigation-sidebar ul li {
  list-style: none;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.navigation-sidebar ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.navigation-sidebar ul li a:hover {
  color: #ffffff;
}

/* --- Timeline Social Media Links --- */

.timeline-social-links {
 display: flex; /* Arrange icons in a row */
 gap: 10px; /* Spacing between icons */
 margin-top: 10px; /* Space between text and icons */
 align-items: center; /* Vertically align icons */
 background-color: #fff;
 justify-content: center;
 padding: 8px 5px;
 border-radius: 8px;
}

.timeline-social-links a {
 display: inline-flex; /* Make the link a flex container for centering icon */
 align-items: center;
 justify-content: center;
 background-color: rgba(255, 255, 255, 0.2); /* Slightly transparent white background */
 color: #fff; /* White icon color */
 border-radius: 50%; /* Circular shape */
 width: 30px;
 height: 30px;
 text-decoration: none;
 font-size: 22px;
 transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.timeline-social-links a:hover {
 background-color: rgba(255, 255, 255, 0.5); /* More opaque on hover */
 transform: scale(1.1); /* Slight scale up on hover */
}

/* Style for specific icons (optional - adjust colors as needed) */

.timeline-social-links a .fa-instagram { color: #E4405F; }
.timeline-social-links a .fa-facebook { color: #1877F2; }
.timeline-social-links a .fa-linkedin { color: #0A66C2; }
.timeline-social-links a .fa-globe { color: #000000; }
.timeline-social-links a .fa-youtube { color: #FF0000; }


/* --- Education Section Styles (Revised for Responsiveness and Cleanliness) --- */

.education-container {
    display: grid;
    /* This makes it responsive:
       - auto-fit: allows columns to grow to fill space
       - minmax(300px, 1fr): each column will be at least 300px wide,
         but will stretch to 1 fraction unit of the available space */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between education items */
    margin-top: 40px;
    padding: 0 15px; /* Add some horizontal padding for smaller screens */
}

.education-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary-blue); /* Default accent border from theme */
    /* Remove the 'mb-4' class from HTML and add margin-bottom here for consistency */
    margin-bottom: 20px; /* Consistent spacing */
}

.education-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); /* More pronounced shadow */
}

.education-header {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to next line on small screens */
    align-items: center;
    justify-content: space-between; /* Space out title and grade */
    margin-bottom: 10px;
}

.education-header h3 {
    font-size: 22px;
    color: var(--primary-blue); /* Default primary blue for main title */
    margin: 0;
    flex-grow: 1; /* Allow title to take up available space */
    /* Ensure title doesn't shrink too much */
    min-width: 150px; /* Or adjust as needed to prevent wrapping issues */
}

.education-icon {
    font-size: 28px;
    color: var(--primary-blue); /* Default primary blue */
    margin-right: 15px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.education-grade {
    font-size: 16px;
    font-weight: 700;
    color: var(--darker-blue); /* Default darker blue for grade */
    padding: 5px 10px;
    background-color: var(--light-blue-transparent-10);
    border-radius: 5px;
    flex-shrink: 0; /* Prevent grade tag from shrinking */
    margin-left: 10px; /* Add some space if it wraps below title */
}

.education-institute {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark); /* Dark text for institute */
    margin-bottom: 5px;
}

.education-details {
    font-size: 16px;
    color: #666; /* Lighter text for dates/details */
    margin-bottom: 15px;
}

.education-activities {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin-top: 15px;
    border-top: 1px dashed var(--border-grey); /* Subtle separator */
    padding-top: 15px;
}

.education-activities li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px; /* Space for custom bullet */
}

.education-activities li::before {
    content: "\2022"; /* Unicode for a small circle bullet */
    color: var(--primary-blue); /* Primary blue bullet */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
    top: 0;
}

.education-languages {
    font-size: 15px;
    color: #555;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-grey);
}

.education-languages strong {
    color: var(--text-dark); /* Make the "Computer Languages" bold and clear */
}


/* --- Responsive Adjustments for Education Section --- */
@media (max-width: 1000px) {
    .education-container {
        grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
        gap: 20px; /* Reduce gap on mobile */
        padding: 0 10px; /* Slightly more padding on very small screens */
    }

    .education-item {
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .education-header {
        flex-direction: column; /* Stack header elements vertically */
        align-items: flex-start; /* Align to the start */
    }

    .education-icon {
        margin-right: 0;
        margin-bottom: 10px; /* Space below icon when stacked */
    }

    .education-header h3 {
        font-size: 20px; /* Slightly smaller font for mobile */
        text-align: left; /* Ensure title is left-aligned */
        width: 100%; /* Take full width when stacked */
    }

    .education-grade {
        margin-left: 0; /* Remove left margin when stacked */
        margin-top: 5px; /* Add some space above grade when stacked */
    }

    .education-institute,
    .education-details,
    .education-activities li,
    .education-languages {
        font-size: 14px; /* Adjust font size for readability on smaller screens */
    }
}