﻿/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #fff;
    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;
 
}

/* Navbar */
nav {
    position: sticky;
    top: 60px;
    width: 100%;
    background: #fff;
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
    color: #002147;
}

.nav-logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    transition: 0.3s;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    color: #004080;
}

/* Hero Section with Background Slider */
.hero-section {
    margin-top: 60px;
    height: 65vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.hero-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .logo {
    height: 70px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 3.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* General Section Styling */
.section {
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    color: #002147;
    margin-bottom: 30px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -15px auto 30px auto;
    color: #555;
}

.section-dark {
    background: #f8f9fa;
}

/* Sports Section */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sport-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 51, 102, 0.12);
}

.sport-card i {
    font-size: 40px;
    color: #004080;
    margin-bottom: 15px;
}

.sport-card h3 {
    font-size: 17px;
    color: #333;
    margin: 0;
}

/* Events, Achievements, and Energia Section Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 51, 102, 0.12);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-content h3 {
    color: #004080;
    margin-bottom: 10px;
}

.card-content .icon {
    font-size: 36px;
    color: #004080;
    margin-bottom: 15px;
    text-align: center;
}

/* Energia Section Specifics */
.energia-section {
    background: linear-gradient(rgba(0, 64, 128, 0.85), rgba(0, 33, 71, 0.85)), url('images/Sports/Energia 1.png') no-repeat center center/cover;
    color: #fff;
    padding: 40px 20px;
}

.energia-section .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.energia-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.energia-logo {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.energia-details {
    text-align: left;
    max-width: 600px;
}

.energia-details p,
.energia-details ul {
    color: #eee;
}

.energia-details ul {
    list-style-position: inside;
    padding-left: 0;
}

/* Core Team Section */
.core-team h4 {
    color: #004080;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 1.5em;
    text-align: center;
}

.tier {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.team-container a {
    text-decoration: none;
    color: inherit;
}

.org-card {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #004080;
    border-radius: 8px;
    padding: 15px;
    width: 240px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.org-card h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.05rem;
}

.org-card p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact h3 {
    margin-bottom: 15px;
    color: #004080;
    font-size: 1.8em;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info a {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #002147;
    text-decoration: underline;
}

.contact-info .social-link {
    display: inline-block;
    margin: 10px 15px;
    font-size: 1.2em;
}

.contact-info .social-link i {
    margin-right: 5px;
}

/* Back to Top & Footer */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    font-size: 18px;
    background: #004080;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s;
}

.back-to-top:hover {
    background: #002050;
}

.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: 1.5rem;
    text-align: center;
}

.footer-links ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    list-style: none;
}

.footer-links li {
    padding: 5px 0;
}

.footer-meta {
    background: #00264d;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.85rem;
}

.footer-meta .visitor {
    float: right;
    margin-right: 1rem;
}

.footer-bottom {
    background: #001933;
    text-align: center;
    padding: 1rem;
}

.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;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
        margin-top: 10px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .tier {
        flex-direction: column;
        align-items: center;
    }

    .org-card {
        width: 90%;
    }

    .sports-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
}