﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: "El Messiri", serif;
}

.one h1 {
    text-align:center;
    padding:20px;
    font-size:40px;
    font-weight:bold;
}
 .two img{
width: 100%;
height: 300px;
}
.one p {
    text-align:center;
    font-size:18px;
    padding: 0px 40px 0px 40px;
}
 .three{
           
          
            margin: 30px;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
          
        }

        .menu {
            width: 900px;
            background: #fff;
            border: 2px solid #e74c3c;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .menu-item {
            border-bottom: 1px solid #f2f2f2;
        }

        .menu-header {
            padding: 10px 20px;
            color: white;
            cursor: pointer;
            font-weight: bold;
            font-size: 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .toggle-symbol {
            font-size: 20px;
          color: #143972;
            font-weight: bold;
            transition: transform 0.3s ease, color 0.3s ease;
        }

      

        .submenu ul  {
            display: block;
            padding: 12px 20px;
            text-decoration: none;
            color: black;
           
            border-left: 4px solid transparent;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .submenu a:hover {
            background: #f9f9f9;
            border-color: #e74c3c;
        }

        .active > .menu-header {
            filter: brightness(0.9);
        }

        .active > .menu-header .toggle-symbol {
            transform: rotate(45deg);
        }

        .active > .submenu {
            display: block;
        }
        .submenu {
    display: none;
    background: #fff;
    padding: 10px 30px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    font-size:17px;
}

/* Submenu Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Submenu Link Hover Effect */
.submenu ul li {
    color: #0c0c0c; /* Dark red text */
}

  .submenu ul li:hover {
      background: #f9f9f9;
      color: #1976d2; /* Blue */
      border-left: 4px solid #1976d2;
    }


/* Adjusted Submenu Header Hover */
.menu-header:hover {
    background-color: #f2d0d9; /* Lighter shade of pink for headers on hover */
}
       /* Adjusted colors for brightness reduction */
.menu-header.tamil-nadu-exams { background: #f28500;} /* Muted red */
.menu-header.group-exams { background:#c8a68c; color:black;} /* Muted gray */
.menu-header.trb-exams { background:#fcecdf; color:black;} /* Muted pink */
.menu-header.uniformed-services { background: #c8a68c;color:black; } /* Soft gray */
.menu-header.medical-health { background: #fcecdf;color:black; } /* Light red */
.menu-header.transport-public { background: #90e0ef;color:black; } /* Soft gray */
.menu-header.state-psus { background:#fcecdf ; color:black;} /* Light coral */
.menu-header.Central-exams { background:#00b4d8; color:black;} /* Dark muted gray */
.menu-header.post-service { background:#caf0f8 ; color:black;} /* Soft gray */
.menu-header.post-ser { background: #fcecdf; color:black;} /* Soft pastel red */
.menu-header.tamil-nadu-exam {background:#f28500;
}
.submenu h3 {
    font-weight:bold;
    color:#3949ab;
    padding:15px;
    padding-left:5px;
}
.submenu p {
    text-align:justify;

}
@media (max-width: 768px) {
    .submenu ul {
        padding: 12px 10px;
    }

    .submenu {
        padding: 10px 20px;
    }
   
}
.imp {
    font-weight:bold;
    color:blue;
}




/*number 1 subject  codes*/
.gg {
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 90%;
        max-width: 600px;
        padding: 20px;
        text-align: center;
    }
    
    .gg-title {
        color: #2c3e50;
        font-size: 1.5rem;
        margin-bottom: 20px;
        text-transform: uppercase;
        font-weight: bold;
    }
    
    .cinfo {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .initem {
        background: #ecf0f1;
        padding: 15px;
        margin: 5px;
        border-radius: 8px;
        flex: 1;
        
        text-align: center;
    }
    
    .initem h3 {
        color: #3498db;
        font-size: 1.1rem;
        margin: 0;
    }
    

    .initem p {
        color: #2c3e50;
        font-size: 1rem;
        margin: 5px 0 0;
        text-align:center;
    }
    .initem:hover {
    background: #d5e8f8;
    transition: background 0.3s ease-in-out;
}

    .ga1 {
        
        display: flex;
        justify-content: center;
        align-items: center;
       height:350px;
        margin: 0;
    }
    /*next course ca*/
      .con1{
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      max-width: 1200px;
      margin: 20px auto;
      padding: 20px;
      background: #fff;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
    }

    .content1 {
      flex: 1;
      padding-right: 20px;
    }

    .content1 h1 {
      color: #2c3e50;
      text-align: center;
      margin-bottom: 20px;
    }

    .content1 h2 {
      color: #34495e;
      margin-top: 20px;
      border-bottom: 2px solid #3498db;
      padding-bottom: 5px;
    }

    .content1 ul {
      margin: 10px 0;
      padding-left: 20px;
    }

    .content1 ul li {
      line-height: 1.6;
    }

    .image-containers{
      flex: 0.4;
    }

    .image-containers img {
      max-width: 100%;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 768px) {
      .con1 {
        flex-direction: column;
        align-items: center;
      }

      .content1 {
        padding-right: 0;
      }

      .image-containers {
        margin-top: 20px;
      }
    }
    /*first section*/
      .fin1 {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            color: #2c3e50;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            scroll-behavior: smooth;
        }

        .c2 {
            width: 100%;
            max-width: 1200px;
            margin: 20px auto;
            background: #ffffff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            height:880px;
        }

        /* head2 */
        .head2 {
            text-align: center;
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(-20px);
            animation: fadeInDown 1.5s ease-in-out forwards;
        }

        @keyframes fadeInDown {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .head2 h1 {
            font-size: 1.8rem;
            margin: 5px 0;
            color: #3498db;
        }

        .head2 h2 {
            margin: 10px 0;
            font-size: 1.2rem;
            color: #7f8c8d;
        }

        .head2 p {
            font-size: 1rem;
            color: #7f8c8d;
        }

       
        /* Footer */
        .footer2 {
            text-align: center;
            margin-top: 20px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 1.5s ease-in-out forwards;
            animation-delay: 1s;
        }

        .footer2 h3 {
            font-size: 1.5rem;
            color: #27ae60;
            margin-bottom: 20px;
        }

        .coo1 {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
        }

        .coo1 div {
            background: #ecf0f1;
            padding: 10px;
            border-radius: 5px;
            width: 30%;
            text-align: center;
            margin: 5px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .coo1 div:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

        .coo1 h4 {
            color: #2980b9;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .coo1 p {
            color: #2c3e50;
            font-size: 1rem;
        }

        /* Scroll Animation */
        .c2 > section {
            animation: fadeIn 1s ease-in-out both;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


        /*3rd section*/
          .fbox {
            width: 100%;
            margin: 40px auto;
            padding: 25px;
            background-color: #fefefe;
            border-radius: 15px;
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            position: relative;
        }
        .head3 {
            text-align: center;
            margin-bottom: 35px;
        }
        .head3 h1 {
            margin: 0;
            font-size:2rem;
            color: #2c3e50;
            text-shadow: 2px 2px #d1e8ff;
            transition: transform 0.4s ease, color 0.4s ease;
        }
        .head3 h1:hover {
            transform: rotate(-2deg) scale(1.05);
            color: #2980b9;
        }
        .head3 p {
            margin: 8px 0;
            font-size: 1em;
            color: #7d8ca3;
        }
        .sectone {
            margin: 30px 0;
        }
        .sectone h2 {
            font-size: 22px;
            margin-bottom: 15px;
            color: #34495e;
            position: relative;
            transition: transform 0.4s ease, color 0.4s ease;
        }
        .sectone h2:hover {
            transform: translateY(-5px);
            color: #599fee;
        }
        .sectone h2::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background: #2980b9;
            margin-top: 5px;
            transition: width 0.4s ease;
        }
        .sectone h2:hover::after {
            width: 100px;
        }
        .table-con {
            margin-top: 20px;
            overflow-x: auto;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: #ecf3ff;
        }
        table, th, td {
            border: 1px solid #bdc3c7;
        }
        th, td {
            padding: 14px;
            text-align: left;
            transition: background 0.3s ease;
        }
        th {
            background-color: #34495e;
            color: #fff;
        }
        td {
            background-color: #f7f9fc;
        }
        tr:hover td {
            background-color: #d6eaf8;
        }
        .fo1 {
            text-align: center;
            font-size: 0.9em;
            color: #7d8ca3;
            margin-top: 30px;
        }
        .right-image {
            position: absolute;
            top: 60px;
            right: 20px;
            width: 150px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
@media (max-width: 768px) {
    .c2 {
        height:1750px;
    }
    .one p {
        padding:0;
    }

}

/*add aditional tables design code*/
.trick {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
          
            padding: 0px;
        }
        .table-con {
            width: 100%;
            overflow-x: auto;
            
        }
       .addon {
            width: 100%;
            border-collapse: collapse;
            background-color: #fff;
            text-align: center;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
            min-width: 700px; /* Ensures table is not squeezed too much */
        }
        .addon th,.addon td {
            border: 1px solid #000;
            padding: 10px;
            white-space: nowrap; /* Prevents text from wrapping */
        }
        .addon  th {
            background-color: #34495e;
            color: white;
        }
        .addon  .header2 {
            background-color: #f2c613;
            font-weight: bold;
        }

        /* Responsive Styling */
        @media (max-width: 768px) {
            .addon th, .addon td {
                padding: 8px;
                font-size: 14px;
            }
        }
        @media (max-width: 480px) {
            .addon th, .addon td {
                padding: 5px;
                font-size: 12px;
            }
        }