﻿html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
}

.logo {
    padding: 5px 0;
}

    .logo img {
        max-width: 100%;
    }

    .logo .logo-row {
        display: grid;
       // grid-template-columns: auto auto auto auto;
        //grid-row: 1 / span 2;
        grid-template-columns: 100px 1fr auto auto;
        grid-gap: 10px;
        align-items: center;
        text-align:left;
        color: #fff;
        margin-top:5px;
        margin-left:10%;

    }
.logo .logo-row   .item1 {
  grid-row: 1 / span 2;
}
        .logo .logo-row .slogan {
            position: absolute;
            top: 15px;
            font-size: 16px;
            color: #FFE997;
            font-family:Arial;
            padding-left:10px;
            margin-top:-10px;
        }


        

    /*logo text animation*/
#container-anim {
    color:#fff;
    text-align:left;
   font-size:28px;
    margin-top:10px;
   width:100%;
   bottom:35%;
    display:block;
    font-weight:700;
}
#flip {
    height:50px;
    overflow:hidden;
}
#flip > div > div {
    color:#fff;
    padding:0px 12px;
    height:45px;
    font-family:Arial;
    margin-bottom:45px;
    display:inline-block;
}

#flip > div > div .hindi{
font-size:28px;
font-weight:400;
}
#flip div:first-child {
    animation: show 10s linear infinite;
}


@keyframes show {
    0% {margin-top:-270px;}
    5% {margin-top:-180px;}
    33% {margin-top:-180px;}
    38% {margin-top:-90px;}
    66% {margin-top:-90px;}
    71% {margin-top:0px;}
    99.99% {margin-top:0px;}
    100% {margin-top:-270px;}
}



.nametag {
  position:absolute;
  opacity: 0;
  animation-name: textFader;
  animation-duration: 5s; /* <---{ 6sec * num(H2) = 18sec } */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;

  color:#fff;
    text-align:left;
   font-size:28px;
   // margin-top:10px;
   //width:100%;
  // bottom:35%;
    display:block;
    font-weight:700;

}

.nametag:first-of-type { animation-delay: 0s; }
.nametag:nth-of-type(2) { animation-delay: 5s; }
.nametag:last-of-type { animation-delay: 10s; }

@keyframes textFader {
  0% {
    opacity: 0;
  } /* fade-in */
  11% {
    opacity: 1;
  } /* show */
  22% {
    opacity: 1;
  } /* fade-out */
  33% { /* <-------------------{ 100% / num(H2) = 33% } */
    opacity: 0;
  } /* waiting for the finish animation of other blocks */
  100% {
    opacity: 0;
  }
}



h10 span::before{
  content: '';
  animation: profile 10s infinite;
  color:#fff;
   text-align:left;
   font-size:28px;
   font-weight:400;
   font-family:Arial;
}
@keyframes profile {
  0% { content: 'Rajiv Gandhi Institute of Petroleum Technology'}
  50% { content: 'राजीव गाँधी पेट्रोलियम प्रौद्योगिकी संस्थान'}
  100% { content: 'Rajiv Gandhi Institute of Petroleum Technology'}
}
h10 em::before{
  content: '';
  animation: slogan 20s infinite;
  font-size: 16px;
  color: #FFE997;
  font-family:Arial;
 // padding-left:10px;
}
@keyframes slogan {
  0% { content: 'An Institution of National Importance, Government of India'}
  50% { content: 'Jais, Amethi, Uttar Pradesh'}
  100% { content: 'An Institution of National Importance, Government of India'}
}





.college-header {


    background-image: url("images/Profile-BG.jpg");
    
   //  background-color: #054c88;
//    background-image: url("../images/header-BG.jpg");
    background-position: right top;
    background-repeat: no-repeat;
    //background-size: 100% auto;
     background-size: cover;
    border-bottom: 2px solid #fff;
    object-fit: cover;
 
}

.main-nav {
    position: sticky;
    top: 60px;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    padding: 10px 0;
}
.nav-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.nav-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #002147;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #004080;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.main-nav li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.main-nav li a:hover {
    background-color: #f0f0f0;
    color: #004080;
}

.hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: #002147;
    background-image: url('images/SnT/Urjotsav 1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin-top: 60px;
    transition: background-image 1.5s ease-in-out;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 71, 0.45);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.2em;
    margin-top: 10px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 40px 24px 24px 24px;
}
h1, h2, h3, h4 {
    color: #002147;
}
h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}
h3 { font-weight: 600; }
.club-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #004080;
}
.section {
    background: #fff;
    padding: 30px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.club-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    margin-bottom: 25px;
    justify-content: center;
}
.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}
.tab-button:hover {
    color: #002147;
}
.tab-button.active {
    color: #004080;
    border-bottom-color: #004080;
}
.club-tab-content {
    display: none;
}
.club-tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.urjotsav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.urjotsav-header h2 {
    margin: 0;
}

.event-grid, .achievement-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-content {
    padding: 15px;
    flex-grow: 1;
}
.card-content h4 {
    margin-top: 0;
}
.card-content p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.org-chart { 
    text-align: center; 
    padding-top: 0; 
}
.org-chart a { 
    text-decoration: none; 
    color: inherit; 
} 
.org-chart .tier { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-bottom: 12px; 
}
.org-chart hr { 
    margin: 12px 0 !important; 
}
.org-chart .org-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #004080;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}
.org-chart a:hover .org-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.12);
    border-left-color: #0056b3;
}
.org-chart .org-card h5 { 
    margin: 0 0 5px 0; 
    color: #002147;
    font-size: 1.05rem;
}
.org-chart .org-card p { 
    margin: 0; 
    color: #555;
    font-size: 0.9rem; 
}
        
.slider-container { position: relative; width: 75%; margin: 20px auto; overflow: hidden; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.slider { display: flex; transition: transform 0.5s ease-in-out; }
.slider img { width: 100%; flex-shrink: 0; object-fit: cover; max-height: 450px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.5); color: white; border: none; padding: 10px 15px; cursor: pointer; border-radius: 5px; font-size: 18px; z-index: 10; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    margin: 40px 0;
}
.stat-item h3 {
    font-size: 2.8em;
    font-weight: 700;
    color: #004080;
    margin: 0;
}
.stat-item p {
    font-size: 1.1em;
    color: #555;
}

.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.social-link { display: inline-flex; align-items: center; text-decoration: none; color: #fff; background-color: #004080; padding: 10px 15px; border-radius: 5px; transition: background-color 0.3s; font-weight: bold; }
.social-link:hover { background-color: #002147; }
.social-link svg { width: 20px; height: 20px; margin-right: 8px; fill: currentColor; }

ul { padding-left: 20px; }
li { margin-bottom: 8px; }

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #004080;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.rgipt-footer { background: #003366; color: #ddd; font-size: 0.9rem; }
.rgipt-footer a { color: #ffcc66; text-decoration: none; transition: color 0.3s; }
.rgipt-footer a:hover { color: white; }
.footer-links { padding: 2rem 20px; text-align: center; max-width: 95%; margin: 0 auto; }
.footer-links ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem; list-style: none; padding: 0; }
.footer-links li { padding: 5px 0; }
.footer-meta { background: #00264d; text-align: center; padding: 0.8rem 20px; font-size: 0.85rem; }
.footer-meta .visitor { float: right; margin-right: 1rem; }
.footer-meta p { text-align: center; }
.footer-bottom { background: #001933; text-align: center; padding: 1rem 20px; }
.footer-bottom ul { list-style: none; padding: 0; margin-bottom: 0.5rem; }
.footer-bottom ul li { display: inline-block; margin: 0 8px; }
.footer-bottom hr { border: 0; height: 1px; background: #555; margin: 10px auto; width: 90%; }
.footer-bottom p { font-size: 0.8rem; color: #aaa; }

@media (max-width: 768px) {
    .container, .nav-container, .footer-links { padding-left: 15px; padding-right: 15px; }
    .hero-content h1 { font-size: 2.2em; }
    .hero-content p { font-size: 1em; }
    h2 { font-size: 1.6em; }
    .section { padding: 20px; }
    .nav-container { justify-content: center; }
    .nav-title { display: none; }
    .main-nav li a { padding: 12px 10px; font-size: 0.9em; }
    .event-grid, .achievement-grid, .gallery-grid { grid-template-columns: 1fr; }
    .org-chart .tier { flex-direction: column; align-items: center; margin-bottom: 0; }
    .org-chart .tier .org-card { margin-bottom: 10px; width: 80%; }
    .footer-meta .visitor { display: block; float: none; margin-top: 10px; text-align: center; }
    .footer-meta p { text-align: center; }
}