

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  padding: 0px;
  background: #f1f1f1;
}
p {
    font-size: 16px;
}

/* Header */
.header {
  padding: 30px;
  text-align: center;
  background: #1abc9c;
  color: white;
}

.header h1 {
  font-size: 50px;
}

 .container2{
      padding-left: 20px;
      padding-right: 20px;
  }
  
.navbar {
    position: fixed;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 10px;
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 500; /* Bolder text */
    letter-spacing: 2px;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 1000; /* Added z-index to ensure navbar stays on top */
}

/* Default link style */
.navbar-nav li a {
    color: #000000 !important; /* Black text */
    text-decoration: none;
}

.navbar-nav  li a:hover {
    color: #1abc9c !important;
  }



/* Layout Columns */
.rightcolumn {
    margin-top: 70px;
  float: left;
  width: 72%;
}

.leftcolumn {
    margin-top: 70px;
  float: left;
  width: 24%;
  background-color: #f1f1f1;
  padding-right: 20px;
  margin-left: 30px;
  
}

/* Responsive Layout */
@media screen and (max-width: 700px) {
  /* Layout Columns */
.rightcolumn {
    margin-top: 70px;
    margin-left: 20px;
  float: left;
  width: 95%;
}

.leftcolumn {
    margin-top: 70px;
  float: left;
  width: 95%;
  background-color: #f1f1f1;
  padding-right: 20px;
  margin-left: 20px;
  
}
}

/* Card Effect */
.card {
  background-color: white;
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Clear Floats */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive Tables */
/* General Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* Allows dynamic column width */
}

table, th, td {
  border: 1px solid #ddd;
  text-align: left;
  padding: 10px;
  word-wrap: break-word; /* Ensures text wraps properly */
}

/* Table Header Styling */
th {
  background-color: #1abc9c;
  color: white;
}

/* Mobile Responsive Table */
@media screen and (max-width: 768px) {
  table {
    font-size: 12px; /* Reduce font size for better fit */
  }

  th, td {
    padding: 5px; /* Reduce padding */
  }

  /* Adjust columns */
  th:nth-child(1), td:nth-child(1) {
    width: 25%; /* Post Name - wider */
  }
  
  th:nth-child(2), td:nth-child(2) {
    width: 15%; /* Total Posts */
  }

  th:nth-child(3), td:nth-child(3) {
    width: 30%; /* Eligibility Criteria */
  }
}

/* Extra small screens (below 480px) */
@media screen and (max-width: 480px) {
  table {
    font-size: 12px; /* Even smaller font */
  }

  th, td {
    padding: 5px;
  }
}


/* Headings & Text */
h3-a {
  font-size: 24px;
  color: #800033;
}

h3 {
  font-size: 24px;
  color: #665200;
}

h2 {
  color: #4CAF50;
}

h5 {
  text-align: left;
  color: #4CAF50;
}

/* Suggested Books */
/* Center the button */
    .button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    /* Button Styling */
    .bookstore-btn {
        display: inline-block;
        padding: 14px 28px;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        color: white;
        background-color: #1abc9c;
        border-radius: 8px;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        border: 2px solid transparent;
    }

    /* Hover Effect */
    .bookstore-btn:hover {
        background-color: #16a085;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    }

    /* Active (Click) Effect */
    .bookstore-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

/* Request to apply */

 .request-btn-wrapper-flex {
  text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
   
}

.request-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #38c172;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.request-btn:hover {
    background-color: #2fa360;
    color: #fff; /*font color white */
    text-decoration: none; 
    transform: translateY(-2px);
}

.request-btn.disabled {
    background-color: #adb5bd; /* Light gray */
    color: #fff;
    cursor: not-allowed;
    pointer-events: auto; /* Still clickable for JS alert */
    box-shadow: none;
    opacity: 0.9;
}
.request-btn.disabled:hover {
    background-color: #adb5bd;
    color: #fff;
    text-decoration: none;
    transform: none;
}

/*  share button  */
.share-btn {
    background-color: #07553B;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    border-radius: 12px;
}

.share-btn:hover {
    background-color: #06402c;
    color: #fff !important;
    text-decoration: none !important;
}

.share-icon {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}


/* Popup */
.custom-share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    width: 380px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.custom-share-popup.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content-icons {
    text-align: center;
    padding: 10px;
}

.popup-content-icons h3 {
    margin-bottom: 15px;
    font-size: 17px;
    color: #333;
}

.icon-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.icon-row a img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
}

.icon-row a:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-close {
    background-color: #6c757d;
    color: white;
    font-weight: bold;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-close:hover {
    background-color: #5a6268;
}



  /*Footer styles */
     /* Default footer (non-fixed on desktop) */
footer {
  position: static;
  width: 100%;
  background-color: grey;
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 999;
}

/* Fixed only on mobile screens */
@media screen and (max-width: 768px) {
  footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
  }

        footer a {
            color: white;
            text-decoration: underline;
        }

        footer a:hover {
            text-decoration: none;
        }

}