/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Cutom GeneratePress child theme for the official website of NIT Mizoram
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

body{

}

h2{
	border-left: 5px solid var(--accent);
	padding-left: 10px !important;
	font-size: 32px;
}

.entry-content:not(:first-child){
	margin-top: 0;
}

tbody{
	background-color: #FFF;
}
/* Site Header */

.site-header{
	box-shadow: 0 2px 10px rgb(0 11 149 / 70%);
	position: relative;
    z-index: 101;
}

.site-header-title {
    margin-left: 1rem;
}

.site-header-title img{
    
}

.site-header-title span{
	display: block;
    font-size: 12px !important;
    margin-left: 7px;
    margin-top: -9px;
}

/* Main Navigation */

.main-navigation{
	position: relative;
	box-shadow: 0 5px 7px rgb(33 51 67 / 12%) !important;
}

.main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .menu-bar-item > a {
    line-height: 35px;
    margin: 10px 6px 10px 0;
	border-radius: 6px;
}

.main-navigation .inside-navigation {
	justify-content: space-evenly;
}

.main-navigation .main-nav ul ul li a{
	margin: 10px !important;
}



/* Home News */

/* .home-news{
	background-color: #ffffff;
	border-left: 5px solid var(--accent);
	min-height: 450px;
	margin-bottom: 20px;
}

.home-news-one{
	display: flex;
	padding-top:10px;
	padding-bottom: 10px;
	padding-left: 10px;
	border-bottom: 1px dashed #333;
	vertical-align:middle;
}

.home-news-one:hover{
	background: #f4f4f4;
}

.home-news-one img{
	height: 30px !important;
}

@media (max-width: 768px){
	.home-news-one img {
	  height: 25px !important;
	  width: 25px !important;
	  margin-top: 5px !important;
	}	
}

.home-news-right{
	width: 90%;
    margin-left: 10px !important;
}

.home-news-post-title{
	font-size: 16px !important;
	font-weight: 600 !important;
	display: flex;
    align-items: center;
}

.wp-show-posts-inner{
	margin-bottom: 20px !important;
}

.home-news-right time{
	font-weight: 600 !important;
	color: var(--ast-global-color-1);
	font-size: 0.8rem;
}
 */



/* Home Events */

.home-events{
	background-color: #ffffff;
}

.home-events-one{
	display:flex;
	padding: 10px 0;
	border-bottom: 1px dashed #333;
	font-size: 16px !important;
	font-weight: 600 !important;
}

.home-events-left{
	width: 20%;
	background-color: var(--global-color-9);
	max-height: 55px !important;
	text-align:center !important;
	color: #FFF;
}

.home-events-left .e-date{
	border-bottom: 1px solid #FFF;
	font-size: 20px;
	font-weight: 600;
}

.home-events-right{
	width: 78%;
    margin-left: 10px !important;
}

.wp-block-table thead {
    background-color: var(--accent);
    color: #FFF !important;
}

.wp-block-table th {
	text-align: left !important;
}


/* Documents Listing */

.parent-pageid-635 .uagb-post-grid-byline{
	display: none;
}

/* Footer */


.footer-col-one{
	border-right: 1px dashed #333333; 
}

.footer-col-one .wp-block-columns{
	justify-content: flex-start;
    align-items: center !important;
    margin-bottom: 10px;
    gap: 5px !important;
}

.site-footer h2.widgettitle{
	font-size: 22px !important;
	font-weight: 600 !important;
}

/* Fixes */
 
.no-sidebar .entry-content .alignfull {
    margin-left: auto;
    margin-right: auto;
}

/* .wp-block-uagb-container{
	row-gap: 0px !important;
}
 */
.wp-block-page-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-page-list li {
    padding: 5px 20px;
    border-bottom: 1px solid #ddd;
}

.wp-block-page-list li:last-child {
    border-bottom: none;
}

.wp-block-pages-list__item__link {
    text-decoration: none;
    color: #1e4484;
    font-weight: 600;
    transition: all 0.3s ease;
}


/*department  */

.wp-block-navigation .wp-block-navigation-item {
    align-items: center;
    background-color: inherit;
    display: flex;
    position: relative;
    padding: 5px 10px;
}

.department-news-list {
    margin: 20px 0;
}

.department-news-item {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
	background-color: #fff;
}

.department-news-item .news-image {
    float: left;
    margin-right: 15px;
    max-width: 200px;
}

.department-news-item .news-title {
    margin-top: 0;
}

.department-news-item .news-publish-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.department-news-item .news-content {
    margin-top: 10px;
}

.department-news-item .news-attachment {
    margin-top: 10px;
    font-weight: bold;
}

.department-news-item::after {
    content: "";
    display: block;
    clear: both;
}

.department-subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.department-subnav li {
  margin-right: 1.5em;
}
.department-subnav li a {
  text-decoration: none;
  color: #FFF;
  font-weight: 500;
}
.department-subnav li.active a {
  border-bottom: 2px solid #FFF;
}


/* Category list */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-item {
  border-bottom: 1px solid #eee;
  padding: 1.5em 0;
}
.entry-title {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
}
.new-icon {
  margin-left: 0.5em;
}
.attachments-list {
  list-style: disc inside;
  margin: 0.75em 0 0;
  padding: 0;
}
.attachments-list li {
  margin-bottom: 0.25em;
}
.pagination {
  margin-top: 2em;
  text-align: center;
}

/* Container: two-column layout inside main */
.single-post .post-body {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2em;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}

/* Header + title styling */
.entry-header {
  margin-bottom: 1.5em;
}
.entry-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 2rem;
  font-weight: 600;
}
.new-icon {
  display: inline-block;
  vertical-align: middle;
}

.post-main {
  background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1.5em;
	border-top: 5px solid var(--accent);
}

/* Content typography */
.entry-content {
  line-height: 1.7;
  margin-bottom: 2em;
}
.entry-content h2,
.entry-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 500;
}

/* Attachments box */
.post-attachments {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 1em 1.5em;
  margin-top: 2em;
}
.post-attachments h6 {
  margin-top: 0;
margin-bottom: 20px;
}
.post-attachments ul {
  list-style: none !important;
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}
.post-attachments li {
  position: relative;
  padding-left: 10px;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* “Sidebar” inside main */
.post-sidebar .widget {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1em;
  margin-bottom: 1.5em;
	border-top: 5px solid var(--accent);
}
.post-sidebar .widget-title {
  font-size: 1.25rem;
  margin-bottom: 0.75em;
  display: inline-block;
  padding-bottom: 0.2em;
}
.recent-posts-widget ul {
  list-style: none;
  padding-left: 0;
}
.recent-posts-widget li {
  margin-bottom: 0.5em;
}
.recent-posts-widget a {
  text-decoration: none;
  color: #264B83;
}
.recent-posts-widget a:hover {
  text-decoration: underline;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
  .single-post .post-body {
    grid-template-columns: 1fr;
  }
}

/* Archive page */

.archive-container{
	width: 100%;
}
.archive-header{
	margin-top: 30px;
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid;
}
.archive-title{
	font-weight: 600;
    font-size: 36px;
}

.post-card-content{
	background-color: #FFF;
    padding: 10px 0px;
    border-left: 5px solid var(--accent);
	margin-bottom: 10px;
}

h2.post-card-title{
	border-left: none;
    margin-bottom: 0;
	font-size:20px;
}

/* ------------------------------
   Pagination (button style)
   ------------------------------ */
.pagination {
  text-align: center;
  margin: 2rem 0;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 .3rem;
  padding: .75rem 1.25rem;
  font-size: 1.1rem;
  line-height: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #0073aa;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.pagination .page-numbers:hover {
  background: #eaeaea;
}

.pagination .page-numbers.current {
  background-color: var(--accent);
  color: #fff;
  border-color: #0073aa;
  cursor: default;
}

/* Department */

h3.other-info-title{
	padding: 5px 10px;
	background: var(--accent);
	color: #fff;
	font-size: 20px;
}

.other-info-item{
	background-color:#fff;
}
.other-info-content{
	    padding: 10px 20px;
}



.important-posts-marquee-container {
    overflow: hidden;
    /* white-space: nowrap; - This can be safely removed with flexbox if items aren't wrapping */
    padding: 10px 0;
    box-sizing: border-box; /* Ensures padding is included in total width */
    position: relative; /* Needed if you want to perfectly align the content wrappers below */
    display: flex; /* Make it a flex container to align the inner scrolling div */
    align-items: center; /* Vertically center content if container has fixed height */
    justify-content: flex-start; /* Ensure content starts from the left */
}

.important-posts-marquee {
    display: flex; /* This is now the scrolling flex container */
    flex-wrap: nowrap; /* Ensure items stay on one line */
    animation: marquee 20s linear infinite; /* Your specified duration */
    /* We don't need a specific width here; flex items will determine it */
    /* Setting it to min-width: 200% *of the container* is another valid strategy */
}

/* Your added style */
.important-posts-marquee p {
    margin-bottom: 0 !important;
}

.marquee-content-wrapper {
    display: flex; /* This wrapper also becomes a flex container for its items */
    flex-shrink: 0; /* IMPORANT: Prevents this wrapper from shrinking */
    flex-grow: 0; /* Prevents this wrapper from growing */
    justify-content: flex-start; /* Align items to the start within each wrapper */
    align-items: center; /* Vertically align items */
    gap: 30px; /* Space between individual marquee items */
    /* CRITICAL FOR SEAMLESS LOOP: */
    /* This ensures each content set takes up exactly 100% of the container's width */
    min-width: 100%;
    width: auto; /* Allow content to determine actual width */
    /* Add some horizontal padding within the wrapper to prevent items from touching edges */
    padding: 0 15px; /* Adjust as needed */
}

.marquee-item {
    flex-shrink: 0; /* Prevents individual items from shrinking */
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    padding: 5px 0;
    color: inherit; /* Ensure link color */
    display: flex; /* If you need the span inside to be a flex item */
    align-items: center; /* Vertically center items within the link if needed */
}

.marquee-item:hover {
    text-decoration: underline;
}

/* Your added style for the span inside marquee-item */
.marquee-item span {
    display: flex;
    align-items: center;
}

/* Keyframes for the marquee animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    /* The -50% here is key. It moves the entire .important-posts-marquee (which is 2x content)
       by exactly half its total width, effectively moving one full set of content off-screen. */
    100% { transform: translateX(-50%); }
}

/* Optional: Pause marquee on hover */
.important-posts-marquee-container:hover .important-posts-marquee {
    animation-play-state: paused;
}


/* Vertical Marquee for News Posts */

.news-posts-vertical-marquee-container {
    overflow: hidden; /* Hides content outside this container */
    height: 445px; /* IMPORTANT: Set a fixed height for the marquee viewport. ADJUST THIS! */
    border: 1px solid #ddd; /* Optional: Add a subtle border */
    background-color: #f9f9f9; /* Optional: Light background */
    padding: 10px 0; /* Optional: Vertical padding within the container */
    box-sizing: border-box; /* Includes padding and border in the element's total height */
    position: relative; /* Establishes a positioning context for children if needed */
    display: flex; /* Flex container for the scrolling content */
    flex-direction: column; /* Stacks content vertically */
    justify-content: flex-start; /* Aligns content to the top */
}

.news-posts-vertical-marquee {
    display: flex; /* This is the main scrolling flex container */
    flex-direction: column; /* Stacks the duplicated content wrappers vertically */
    flex-shrink: 0; /* Prevents this container from shrinking */
    animation: news-vertical-scroll 25s linear infinite; /* Animation name and duration. ADJUST DURATION! */
    /* Adjust animation duration (e.g., 25s) based on height, number of posts, and desired speed */
}

/* Pause marquee on hover */
.news-posts-vertical-marquee-container:hover .news-posts-vertical-marquee {
    animation-play-state: paused;
}

.vertical-marquee-content-wrapper {
    display: flex; /* This wrapper also becomes a flex container for its items */
    flex-direction: column; /* Stacks the individual news items vertically */
    flex-shrink: 0; /* CRITICAL: Prevents this wrapper from shrinking */
    flex-grow: 0; /* Prevents this wrapper from growing */
    min-height: 100%; /* CRITICAL: Each wrapper must be at least the height of the container */
    justify-content: flex-start; /* Aligns content to the top within each wrapper */
    padding: 0 15px; /* Optional: Horizontal padding to prevent text from touching edges */
    box-sizing: border-box; /* Ensures padding is included in height calculation */
}

.home-news-one {
    display: flex; /* Make each news item a flex container */
    align-items: flex-start; /* Aligns content to the top within each news item */
    padding: 8px 0; /* Padding for individual news items */
    margin-bottom: 5px; /* Space between each news item */
    border-bottom: 1px dashed #eee; /* Light dashed separator */
    flex-shrink: 0; /* Ensures the news item doesn't shrink */
    box-sizing: border-box; /* Ensure padding/border don't cause overflow */
}

/* Remove bottom border from the last item in each wrapper for a cleaner loop transition */
.vertical-marquee-content-wrapper .home-news-one:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.home-news-right {
    display: flex; /* Make this a flex container */
    flex-direction: column; /* Stacks title and time vertically */
    flex-grow: 1; /* Allows it to take available horizontal space */
}

.home-news-right a {
    text-decoration: none;
    color: #333; /* Default text color for the link */
    display: flex; /* To contain title and time nicely */
    flex-direction: column;
}

.home-news-post-title {
    font-size: 16px;
    line-height: 1.3;
    font-weight: bold;
    color: #0056b3; /* Blue color for titles */
    margin-bottom: 5px; /* Space between title and time */
    display: flex; /* For aligning text and the 'new' icon */
    align-items: center; /* Vertically align text and image */
    gap: 8px; /* Space between title text and image */
}

/* Specific styling for the 'new' icon image */
.home-news-post-title img {
    height: 25px; /* Your specified height */
    width: 25px; /* Your specified width */
    flex-shrink: 0; /* Prevents the image from shrinking */
    object-fit: contain; /* Ensures the image fits within its dimensions */
}

.home-news-right time {
    font-size: 13px;
    color: #666; /* Gray color for date/time */
}

/* Keyframes for the vertical marquee animation */
@keyframes news-vertical-scroll { /* Renamed animation */
    0% { transform: translateY(0%); }
    /* Moves the entire .news-posts-vertical-marquee (which is 2x content height)
       upwards by exactly half its total height, effectively moving one full set of content off-screen. */
    100% { transform: translateY(-50%); }
}

/* Ensure no default paragraph margins interfere, if paragraphs are used within the marquee */
.news-posts-vertical-marquee p {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Home News - With Scrolling Animation */

/* Main container - acts as a viewport */
.home-news {
	background-color: #ffffff;
    border-left: 5px solid var(--accent);
    height: 400px;
    margin-bottom: 20px;
    overflow: hidden;
    margin-top: 20px;
}

/* Individual post item styling */
.home-news-one {
	display: flex;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	border-bottom: 1px dashed #333;
	vertical-align: middle;
}

.home-news-one:hover {
	background: #f4f4f4;
}

.home-news-one img {
	height: 30px !important;
}

.home-news-one img.news-post-thumb{
	height: 50px !important;
	width: 50px !important;
	object-fit: cover;
}

@media (max-width: 768px) {
	.home-news-one img {
		height: 25px !important;
		width: 25px !important;
		margin-top: 5px !important;
	}
}

.home-news-right {
	width: 90%;
	margin-left: 10px !important;
}

.home-news-post-title {
	font-size: 16px !important;
	font-weight: 400 !important;
	display: flex;
	align-items: center;
}

.wp-show-posts-inner {
	margin-bottom: 20px !important;
}

.home-news-right time {
	font-weight: 600 !important;
	color: var(--ast-global-color-1);
	font-size: 0.8rem;
}

/* --- SCROLLING ANIMATION STYLES --- */

/* The element that contains the duplicated list and moves */
.home-news-scroller {
	/* Animation Parameters: 
	  - scrollUp: the name of our @keyframes rule.
	  - 25s: the duration. Increase for slower scroll, decrease for faster.
	  - linear: a constant speed.
	  - infinite: loop forever.
	*/
	animation: scrollUp 25s linear infinite;
}

/* Pause the animation on hover */
.home-news:hover .home-news-scroller {
	animation-play-state: paused;
}

/* The animation definition */
@keyframes scrollUp {
	from {
		transform: translateY(0);
	}
	to {
		/* Move upward by 50% of the scroller's total height */
		transform: translateY(-50%);
	}
}



/* Para row gap */

.wp-block-uagb-container:not(.has-row-gap){
	row-gap: 0 !important;
}


/*
.wp-block-uagb-container p, .wp-block-uagb-container li:not(.wp-block-pages-list__item){
	text-align: justify !important;
}

*/
/* sidebar */

.widget ul li {
    list-style-type: none;
    position: relative;
    margin-bottom: .5em;
    font-size: 15px;
    border-left: 2px solid var(--accent);
    padding-left: 5px;
}